Re: [Vala] Getting path to my program's directory



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.




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