Re: scripting default PDF application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



M.Clasen wrote:

This part is a little bit more tricky not that much ;-) First you have
to find your gnome-vfs mime database. I found it on my system
in /usr/share/mime-info/. There should be a gnome-vfs.keys in it. In
this file you should find descriptions in various languages and the
application and component assignents for every mime-type you see by
default in your "File types and programs" dialog.


I will use video/mpeg (without all those translations) as an example
here:


video/mpeg
	description=MPEG video
	default_action_type=application
	short_list_application_ids_for_novice_user_level=vlc,xmps,plaympeg,omsomi,mpeg_play,gtv
	short_list_application_ids_for_intermediate_user_level=vlc,xmps,plaympeg,omsomi,mpeg_play,gtv
	short_list_application_ids_for_advanced_user_level=vlc,xmps,plaympeg,omsomi,mpeg_play,gtv
	category=Video	

default_action_type
... is set to "application" which means that gnome will first
try to use an application listed in the "application list" for
handling this mime-type.
short_list_application_ids_for_*
Here you get a listing of applications assigned to this mime-
type. I'm currently not sure, if this listing is complete or
not. The pdf-entry:
default_action_type=component
short_list_component_iids_for_novice_user_level=OAFIID:GNOME_PDF_Control
short_list_component_iids_for_intermediate_user_level=OAFIID:GNOME_PDF_Control
short_list_component_iids_for_advanced_user_level=OAFIID:GNOME_PDF_Control
short_list_application_ids_for_novice_user_level=acroread,gpdf,xpdf,ggv,gv
short_list_application_ids_for_intermediate_user_level=acroread,gpdf,xpdf,ggv,gv
short_list_application_ids_for_advanced_user_level=acroread,gpdf,xpdf,ggv,gv


I thing its ok, to simple put xpdf as the first entry, so it becomes the
major component to open pdf.
Michael



This seems to work.


Many thanks,

Matt.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux