Re: Execute associated image viewer or media player on button click
- From: Zettai Muri <zettaimuri ymail com>
- To: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
- Cc: gtk-perl-list gnome org
- Subject: Re: Execute associated image viewer or media player on button click
- Date: Wed, 9 Dec 2009 01:00:37 -0800 (PST)
xdg-open is by far the easiest way to open a file no matter which
desktop the user is running. In old linuxes that command wasn't
available but today it seems to be available. This is also why I posted
the alternative gnome-open which is always available but is desktop
specific.
xdg-open is a shell script so you an peek and see how they do to detect which desktop is running. But why
going through all the hassle when xdg-open does everything? :)
Thanks for taking the time to answer the extra questions. Looks like xdg-open is the way to go.
__________________________________________________________________________________
Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7.
Enter now: http://au.docs.yahoo.com/homepageset/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]