Re: "Program Files" folder
- From: Dov Grobgeld <dov grobgeld gmail com>
- To: John Emmas <johne53 tiscali co uk>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: "Program Files" folder
- Date: Thu, 21 Apr 2011 12:59:47 +0300
There is no such thing as default folder under Linux/Unix. The user might
want to install an application in her home directory, or in /opt, or in
/usr/bin depending on permissions or the visibility of the application.
Perhaps you meant to ask if it is possible to know where the application was
run from? In that case just check argv.
On Thu, Apr 21, 2011 at 11:00, John Emmas <johne53 tiscali co uk> wrote:
I know that glib offers a function called g_get_home_dir() which returns
the user's home folder on the relevant platform. Is there any similar
function that will give me the default folder for installing applications?
For example, on Windows this would return "C:\Program Files". On Linux it
might be "/bin" or "/usr/bin" or "/usr/local/bin" etc. And on OS-X it would
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
] [Thread Prev