SCIENTIFIC-LINUX-USERS Archives

July 2005

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jaroslaw Polok <[log in to unmask]>
Reply To:
Jaroslaw Polok <[log in to unmask]>
Date:
Tue, 26 Jul 2005 18:00:22 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (37 lines)
Mark Nelson wrote:
> Hello
> 
> I want to change a couple of the KDE helper applications that are used
> to view certain types of file.  For example our users want to use gv
> instead of the standard kde postscript viewer.  I know how to do this
> for an individual account, what I need to do is to change the system
> default. I have looked and looked but can't find out how to do it.

Creating a desktop file alike:

[Desktop Entry]
Name=sthg
Exec=sthg %u
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Application;sthg;
MimeType=some-mime-type
InitialPreference=X

Where X > preference for the original app handling "some-mime-type"

then running desktop-file-install

shall do it for KDE, although I'm not sure that would work
for GNOME (well application will be added to menus/list of handlers
for given mime-type but I'm not sure whether InitialPreference
key will be taken into account ..)

Jarek
__
-------------------------------------------------------
_ Jaroslaw_Polok ___________________ CERN - IT/ADC/LE _
_ http://home.cern.ch/~jpolok ___ tel_+41_22_767_1834 _
_____________________________________ +41_78_792_0795 _

ATOM RSS1 RSS2