hi;

you can (should, really) specify it as a dependency for your
application if you package it. it should also be checked through the
build system, given that it's a dependency — e.g. through
AC_CHECK_PROG in a configure.ac.

to be fair, xdg-utils *should* be installed by default in any new
installation *and* when upgrading; I'd consider it a bug in the Debian
update process if it didn't. that's the whole point of the xdg-utils
tools, really: provide a stable API for cross-desktop operations.

otherwise, I could have just said: "use g_spawn_* with the nautilus
process, and if you don't have nautilus installed then though".

ciao,
 Emmanuele.


On 8 February 2014 08:40, Chris Angelico <ros...@gmail.com> wrote:
> On Sat, Feb 8, 2014 at 7:33 PM, Emmanuele Bassi <eba...@gmail.com> wrote:
>> on Linux you can use the `xdg-open` command[1] (it should be available
>> on any reasonably modern distribution as part of the cross-desktop
>> utilities[0]). you can use xdg-open to open any file or URI you pass
>> to it with the correct application for the file's MIME type; if that
>> path is a directory, then the default action is to open a file manager
>> window.
>
> Available, maybe, but not necessarily installed. It wasn't on several
> of my Debian systems.
>
> ChrisA
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to