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

Re: how to execute a data-file's preferred app from the cmd-line?



On Thu, 2006-06-22 at 09:23 +0300, Török Edvin wrote:
> On 6/22/06, Sune Vuorela <nospam@vuorela.dk> wrote:
> > On 2006-06-22, David H. Cook <David.Hubert.Cook@gmail.com> wrote:
> > > So, my question is:  Is there an equivalent cmd for 'start' (e.g. for
> > > KDE)?
> >
> > kfmclient exec foobar.odt
> What if I am using gnome? Should I use gnome-open then?
> Ah, and how do I determine if I am running gnome or kde?
> (look in the output of `ps x'?)

Use xdg-open, from the Portland Project.

http://portland.freedesktop.org/wiki/

It detects the DE and will use kfmclient/gnome-open/xfce-whatever as
relevant.

Ross
-- 
Ross Burton                                 mail: ross@burtonini.com
                                          jabber: ross@burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: