Mailinglist Archive: opensuse-gnome (216 mails)

< Previous Next >
Re: [opensuse-gnome] Changing the path opened by default by GTK/Gnome file open dialogue
  • From: Tero Pesonen <tero.pesonen@xxxxxxxxxx>
  • Date: Tue, 2 Oct 2007 19:46:03 +0300
  • Message-id: <200710021946.04037.tero.pesonen@xxxxxxxxxx>
On Tuesday 02 October 2007, you wrote:
> Hi Tero,
>
>  GtkFileChooser uses the current working directory (try to launch your
> app from the terminal at another directory than home). If you use few
> GTK+ programs, you could just edit the menu .desktop files to specify
> the working directory (see
> http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html
> , entry Path).

Hi Ricardo!

Yes, the File chooser indeed uses the current working directory, and
setting it appropriately solves the issue for what my simple needs are
concerned.

>  If you can and would like to help out, making it configurable; the
> code in question is at file gtkfilechooserdefault.c, function
> gtk_file_chooser_default_get_current_folder. You specify the gtkrc
> entry to parse at gtksettings.c, and use its API to get the property
> from the file at question (grep some property name to see the settings
> API is used). [1]
>  Now, you can create ~/.gtkrc-2.0 with your entry specified.
>
>  Would you like to give it a try, or should I? (this seems to be a fast
> fix, but I rather not break the system installing some other gtk+ :))

Thanks for you advice and offer for help! Unfortunately, I'm not a
programmer, and I'm afraid although I'd like to, I fall at the "if you
can" step :( 

I doubt there'd much to test about this if someone chose to implement it,
as it is so simple a job, but if any such help is of any use, I'm
available.

Thanks again,
Tero Pesonen

-- 
To unsubscribe, e-mail: opensuse-gnome+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-gnome+help@xxxxxxxxxxxx

< Previous Next >