'mime'에 해당되는 글 1건

  1. 2010.03.15 MIME + nautilus(GNOME)
Linux2010. 3. 15. 14:00
MIME은 Multipurpose Internet Mail Extensions 의 약자로
원래 메일을 주고 받을때 파일의 종류를 알려주기 위해 사용한다.
[링크 : http://ko.wikipedia.org/wiki/MIME]

그런데 왜 리눅스에서 MIME을 쓰는지 궁금했는데 음.. 귀차니즘이.. OTL
아무튼, GDE(Gnome Desktop Environment)의 파일매니저인 natilus 에서 MIME으로
파일을 인지한다고 한다. MIME을 통해 실행할 프로그램의 연결도 한다.

The Nautilus file manager uses MIME types to identify the type of a file. The file manager needs to know the MIME type of a file to perform the following tasks:

  • Open the file in an appropriate application.

  • Display a string that describes the type of file.

  • Display an appropriate icon to represent the file.

  • Display a list of other applications that can open the file.

If you add a new application, you must ensure that other applications can recognize the files associated with the application. You must perform several tasks to enable other applications to detect the MIME type of the application files.


[링크 : http://docs.sun.com/app/docs/doc/817-5310/6mkpbn3tu?a=view]
[링크 : http://library.gnome.org/admin/system-admin-guide/stable/mimetypes-intro.html.ko]

FC6에서는
/usr/share/mime 하위에 카테고리 별로 존재한다.
$ ll /usr/share/mime
total 212
-rw-r--r-- 1 root root  2393 Feb 16 13:30 aliases
drwxr-xr-x 2 root root 12288 Feb 16 13:30 application
drwxr-xr-x 2 root root  4096 Feb 16 13:30 audio
-rw-r--r-- 1 root root 13774 Feb 16 13:30 globs
drwxr-xr-x 2 root root  4096 Feb 16 13:30 image
drwxr-xr-x 2 root root  4096 Feb 16 13:30 inode
-rw-r--r-- 1 root root 11904 Feb 16 13:30 magic
drwxr-xr-x 2 root root  4096 Feb 16 13:30 message
-rw-r--r-- 1 root root 50520 Feb 16 13:30 mime.cache
drwxr-xr-x 2 root root  4096 Feb 16 13:30 model
drwxr-xr-x 2 root root  4096 Feb 16 13:30 multipart
drwxr-xr-x 2 root root  4096 Feb 16 13:30 packages
-rw-r--r-- 1 root root  5680 Feb 16 13:30 subclasses
drwxr-xr-x 2 root root  4096 Feb 16 13:30 text
drwxr-xr-x 2 root root  4096 Feb 16 13:30 video
-rw-r--r-- 1 root root    56 Feb 16 13:30 XMLnamespaces


CUPS(samba, Common Unix Printing System)에서도 이러한 MIME을 사용하는데
/etc/cups/mime.types 파일에서 내용을 볼수있다.

xdg(X Desktop Group)
/etc/xdg 에서는
Gnome의 시작 프로그램 설정 및 메뉴에 관련된 파일이 존재한다.
[링크 : http://en.wikipedia.org/wiki/Freedesktop.org]

'Linux' 카테고리의 다른 글

mkfs에는 quick format 없나요?  (0) 2010.03.19
grep으로 원하는 문자열 색상 바꾸기?  (2) 2010.03.17
glibc는.. 설치시 매~~~우 주의를 요합니다 ㄱ-  (0) 2010.03.11
glibc 컴파일하기  (0) 2010.03.11
*.la 파일 - libtool  (0) 2010.03.09
Posted by 구차니