Re: AW: Setting new Home dir
- From: Cedric Gustin <cedric gustin swing be>
- To: Andreas Hauber <A Hauber t-online de>
- Cc: gtkmm-list gnome org
- Subject: Re: AW: Setting new Home dir
- Date: Mon, 20 Dec 2004 22:00:40 +0100
Andreas Hauber wrote:
I thought about how gtk knows where the homedir is. There is a default
button in the dialog with the caption 'Home' and when you click on it
C:\docs and settings\user\ is opened instead of ...\user\My_Files\ what is
more what a ms windows dialog would do. Now im asking you where gtk gets the
information about the homedir so maybe the default could be changed to be
more windows like.
It gets it from the g_get_home_dir() function. Looking at
http://cvs.gnome.org/viewcvs/glib/glib/gutils.c?rev=1.151&view=markup
glib first looks for the %HOME% environment variable, and if not
present, for the %USERPROFILE% variable.
So, I guess the best is to (re-)define HOME to %USERPROFILE%\My
Documents in your user profile (Control
Panel/System/Advanced/Environment Variables) and voilà, the
filechooserdialog "Home" button will open on the right directory.
Cedric
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]