>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 i
On Tue, Dec 8, 2009 at 10:04 PM, Zettai Muri wrote:
>
> And thanks for the linux information.
>
> Is xdg-open file the best way to go rather than checking whether or not the
> user is using KDE/Gnome?
xdg-open is by far the easiest way to open a file no matter which desktop
the user is running.
>On Tue, Dec 8, 2009 at 3:38 PM, Dov Grobgeld wrote:
>
>You don't say under what system you need this.
My apologies, potentially I would like it to work on both windows and linux.
>>
>>On windows you would simply do:
>>
>>system("foo.png")
>>
>>and you would call the viewer associated with
On Tue, Dec 8, 2009 at 3:38 PM, Dov Grobgeld wrote:
> You don't say under what system you need this.
>
> On windows you would simply do:
>
> system("foo.png")
>
> and you would call the viewer associated with .png files.
>
> (This works for url's as well as just running it through system, run
You don't say under what system you need this.
On windows you would simply do:
system("foo.png")
and you would call the viewer associated with .png files.
(This works for url's as well as just running it through system, runs the
prefered user browser).
On Linux there is no such system defa
Hi All,
I have 2 buttons in my program. One labelled 'Play' and the other 'View'. Is
there a way to call the associated image viewer or media player when a file has
been found and then the button is clicked?
Not sure if I should be asking here or on a Perl forum.
Many thanks for any suggesti