* [Comm] Nautilus file list @ 2003-08-07 21:47 Alex Khroustalev 2003-08-08 10:44 ` [Comm] Nautilus file list [JT] ILYA Sibgatullin 0 siblings, 1 reply; 4+ messages in thread From: Alex Khroustalev @ 2003-08-07 21:47 UTC (permalink / raw) To: Community Здравствуйте. Меня вот уже долгое время мучает следующая проблема. Насколько я понял, Nautilus определяет тип файлов по содержимому, а не по расширению. Как-нибудь это можно изменить? Мне кажется, что именно по этой причине список файлов на внешнем жестком диске, подключенном через USB, появляется непозволительно долго... ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Nautilus file list [JT] 2003-08-07 21:47 [Comm] Nautilus file list Alex Khroustalev @ 2003-08-08 10:44 ` ILYA Sibgatullin 2003-08-08 4:49 ` Andrey A. Jelnin 2003-08-08 6:01 ` Andrey Golovin 0 siblings, 2 replies; 4+ messages in thread From: ILYA Sibgatullin @ 2003-08-08 10:44 UTC (permalink / raw) To: community В сообщении от Четверг 07 Август 2003 21:47 Alex Khroustalev написал(a): > Меня вот уже долгое время мучает следующая проблема. Насколько я > понял, Nautilus определяет тип файлов по содержимому, а не по > расширению. Как-нибудь это можно изменить? Мне кажется, что именно по > этой причине список файлов на внешнем жестком диске, подключенном > через USB, появляется непозволительно долго... Вопрос к спецам. Когда-то в какой-то книжечке я читал, что и юниксподобных системах не существует понятия "расширение". Вроде, что правильно называть суффиксы и префиксы. И что три буквы после точки на конце -- это условное соглашение, ни к чему не обязывающее. Это так? Или всё же это "расширение"? -- ... WBR, Ilya Sibgatullin --- KMAIL-1.5/LNX * Origin: -- Share the world! -- ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Nautilus file list [JT] 2003-08-08 10:44 ` [Comm] Nautilus file list [JT] ILYA Sibgatullin @ 2003-08-08 4:49 ` Andrey A. Jelnin 2003-08-08 6:01 ` Andrey Golovin 1 sibling, 0 replies; 4+ messages in thread From: Andrey A. Jelnin @ 2003-08-08 4:49 UTC (permalink / raw) To: community > Вопрос к спецам. Когда-то в какой-то книжечке я читал, что и > юниксподобных системах не существует понятия "расширение". Вроде, что > правильно называть суффиксы и префиксы. И что три буквы после точки на > конце -- это условное соглашение, ни к чему не обязывающее. > Это так? Или всё же это "расширение"? Ну в принципе верно есть такая команда file - она по сигнатуре и определяет тип файла -- Silence in xmms ---- Jaa mata, Администратор веб-узла ОАО "Гипросвязь" Andrey A. Jelnin aka BsoD e-mail: <bsod@gs7.ru> jabber: bsod@jabber.ru icq: 112600159 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Nautilus file list [JT] 2003-08-08 10:44 ` [Comm] Nautilus file list [JT] ILYA Sibgatullin 2003-08-08 4:49 ` Andrey A. Jelnin @ 2003-08-08 6:01 ` Andrey Golovin 1 sibling, 0 replies; 4+ messages in thread From: Andrey Golovin @ 2003-08-08 6:01 UTC (permalink / raw) To: community В Птн, 08.08.2003, в 14:44, ILYA Sibgatullin написал: > Вопрос к спецам. Когда-то в какой-то книжечке я читал, что и > юниксподобных системах не существует понятия "расширение". Вроде, что > правильно называть суффиксы и префиксы. И что три буквы после точки на > конце -- это условное соглашение, ни к чему не обязывающее. > Это так? Или всё же это "расширение"? Я не спец, но попробую. Понятие расширения имени файла в юниксе не существует. Существуют определенные соглашения о именах. Например, если имя начинается с точки, файл считается скрытым, если с "~" - резервной копией (аналог .BAK). К исходникам программ на С, например, принято добавлять суффикс .c Распознавание типа файла (возвращаюсь к исходному вопросу) в разных программах осуществляется по разному. Наутилус действительно пытается распознать тип файла по содержимому (точнее, по сигнатуре), но если это ему не удается - по расширению. В первом гноме я лечил наутилус удаляя какой-то файл в /etc (имя файла уже не помню) или, что более правильно, но и более трудоемко - заремарил в нем те типы файлов, которые однозначно распознаются по расширению и которые нет особого смысла проверять по содержимому. Во втором гноме все работает заметно шустрее и как это сделать сейчас я не смотрел. К разработчикам (а они здесь есть?): была бы очень полезна опция, позволяющая менять очередность распознавания типа файла - сначала по содержимому, а если не удалось, по имени, или наоборот. Для медленных машин это было бы очень полезно, а потеря функциональности была бы минимальной. -- С уважением, Андрей Головин ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-08 10:44 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-08-07 21:47 [Comm] Nautilus file list Alex Khroustalev 2003-08-08 10:44 ` [Comm] Nautilus file list [JT] ILYA Sibgatullin 2003-08-08 4:49 ` Andrey A. Jelnin 2003-08-08 6:01 ` Andrey Golovin
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git