ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Ассоциации mime в spec
@ 2007-01-31 14:38 Yurkovsky Andrey
  2007-02-01  4:49 ` Хихин Руслан
  0 siblings, 1 reply; 4+ messages in thread
From: Yurkovsky Andrey @ 2007-01-31 14:38 UTC (permalink / raw)
  To: community

Пытаюсь собрать rpm khaalireader. Хотелось бы, чтобы после
установки книги в формате fb2 открывались в ней.

Описания mime программа сама по-себе не имеет. Привожу часть
спека, где пытался решить поставленную задачу (пока
безрезультатно):

,----[ khaalireader-0.2.6.spec ]
| %install
| %makeinstall
| %make DESTDIR=%buildroot install
| mkdir -p %buildroot/usr/share/
| mkdir -p %buildroot/usr/share/mimelnk/
| mkdir -p %buildroot/usr/share/mimelnk/text/
| cat << EOF > %buildroot/usr/share/mimelnk/text/fb2.desktop
| [Desktop Entry]
| Encoding=UTF-8
| MimeType=text/fb2
| Comment=Ficrion Book 2 file
| Comment[ru]=Документ RTF
| Icon=khaalireader.png
| Type=MimeType
| Patterns=*.fb2;*.FB2;*.Fb2;*.fB2
| EOF
| mkdir -p %buildroot/usr/share/mime-info/
| cat << EOF >
%buildroot/usr/share/mime-info/khaalireader.keys
| text/fb2
| 
short_list_application_ids_for_novice_user_level=khaalireader
| 
short_list_application_ids_for_intermediate_user_level=khaalireader
| 
short_list_application_ids_for_advanced_user_level=khaalireader
| EOF
| cat << EOF > %buildroot/usr/share/mime-info/fb2.keys
| text/fb2
|       open=khaalireader %f
|       view=khaalireader %f
|       default_action_type=application
|       default_application_id=khaalireader
| EOF
| 
| %find_lang %name
| 
| %post
| %update_menus
| %update_mimedb
| 
| %postun
| %clean_menus
| %clean_mimedb
| 
| %files
| %_bindir/*
| %_datadir/applnk/Utilities/khaalireader.desktop
| %_datadir/mimelnk/text/fb2.desktop
| %_datadir/mime-info/khaalireader.keys
| %_datadir/mime-info/fb2.keys
| %_datadir/apps/khaalireader/khaalireaderui.rc
| %_datadir/apps/khaalireader/tips
| %_datadir/locale/*/*/*.mo
| %_iconsdir/*/*/apps/%name.png
| %_menudir/*
| %doc AUTHORS COPYING ChangeLog NEWS README TODO
| %_docdir
`----

Чего не хватает для ассоциации типа файла с программой?

-- 

Yurkovsky Andrey




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-02-02 22:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 14:38 [Comm] Ассоциации mime в spec Yurkovsky Andrey
2007-02-01  4:49 ` Хихин Руслан
2007-02-02 10:00   ` Yurkovsky Andrey
2007-02-02 22:15     ` Хихин Руслан

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