Arkadi Viner wrote:
> Hi guys.
> I need to execute some program which is located in my program's directory.
> Is there any API to get the path to my program's directory?
> Thanks.

I found an unlikely solution that works for me, although it requires Gtk
(so it's not Vala specific—can we answer seemingly Vala-specific
questions with non-Vala-specific answers here?)
• Make a Gtk.FileChooserDialog
• Call its get_current_folder method (it's your program directory by
default, or at least it's mine on Ubuntu 9.10—it'd be nice to know if it
worked on other operating systems, too, though.

_______________________________________________
Vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to