Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How to change default "open file" location away from "recently used"?

  1. #1
    Join Date
    May 2010
    Location
    Canada
    Beans
    15
    Distro
    Ubuntu 11.04 Natty Narwhal

    How to change default "open file" location away from "recently used"?

    This has been bothering me ever since I started using Ubuntu.
    When ever I go to open a file the file chooser dialog that appears usually defaults to the 'recently used' filter. I'm sure someone finds this useful, but not once in the last 3 years have I every found this window useful.

    Is there a way to change this to default to $HOME or even /?

    I found an older page explaining that it is possible to temporarily change the 'last-folder-uri' by using dconf-editor. As dconf-editor is not installed by default in Xubuntu, I was wondering if there is a more reliable solution.

    http://askubuntu.com/questions/63202...chooser-dialog

  2. #2
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!

    Re: How to change default "open file" location away from "recently used"?

    Just like the xubuntu 12.04 save dialog, which instead of using the folder that the particular app used last time, often but not always, reverts to the recently used folder that anything was saved to.

    It is so annoying and not in the least useful to me!
    DISTRO: Xubuntu 16.04-64bit --- Code-tags --- Boot-Repair --- Grub2 wiki & Grub2 Basics --- RootSudo --- Wireless-Info

  3. #3
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to change default "open file" location away from "recently used"?

    After some intensive googling and brief testing, the following seems to make it default to the home directory (Xubuntu 13.04). Edit the file $HOME/.config/gtk-2.0/gtkfilechooser.ini and change:
    StartupMode=recent
    ...to:
    Code:
    StartupMode=cwd
    I'd be interesting in hearing whether this works for others. As for GTK version, I've got 2.24.17:
    $ apt-cache policy libgtk2.0-0
    libgtk2.0-0:
    Installed: 2.24.17-0ubuntu2
    Candidate: 2.24.17-0ubuntu2
    Version table:
    *** 2.24.17-0ubuntu2 0
    500 http://ca.archive.ubuntu.com/ubuntu/ raring/main amd64 Packages
    100 /var/lib/dpkg/status
    Note: might only work with gtk2 apps.

  4. #4
    Join Date
    May 2010
    Location
    Canada
    Beans
    15
    Distro
    Ubuntu 11.04 Natty Narwhal

    [Solved] How to change default "open file" location away from "recently used"?

    Thanks you Toz.
    This works wonderfully for most apps.

    I'm also running the same gtk2 version.

    I'll keep testing programs as i go and see what programs still use the 'recently used' filter.
    So far only gedit.

  5. #5
    Join Date
    Jul 2012
    Beans
    318
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to change default "open file" location away from "recently used"?

    Hmmmm......I don't have folder ~/.config/gtk-2.0 and consequently no~/.config/gtk-2.0/gtkfilechooser.ini file. Just create it with that single entry ?
    The best things in life are free, so what are we paying for?

  6. #6
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to change default "open file" location away from "recently used"?

    Which version of Xubuntu are you using. On 13.04, its created automatically as soon as I File->Open on gtk-compliant app. Perhaps this bug is relevant for you?

    Try creating one. The contents of the file are as such:
    Code:
    [Filechooser Settings]
    LastFolderUri=file:///usr/share/pixmaps
    LocationMode=path-bar
    ShowHidden=false
    ShowSizeColumn=true
    GeometryX=306
    GeometryY=106
    GeometryWidth=792
    GeometryHeight=585
    SortColumn=name
    SortOrder=ascending
    StartupMode=recent
    Be wary of the geometry settings, I believe they set the size of the dialog box.

    Now thats interesting. cat'ing the file now, I see that its returned to "StartupMode=recent". Something set it back.

  7. #7
    Join Date
    Jul 2012
    Beans
    318
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to change default "open file" location away from "recently used"?

    I am on 12.04 LTS up to date.

    Tried creating folder and file with just StartupMode=cwd in it, re-logged in, but no change.
    The best things in life are free, so what are we paying for?

  8. #8
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,718
    Distro
    Xubuntu

    Re: How to change default "open file" location away from "recently used"?

    Quote Originally Posted by Merrattic View Post
    I am on 12.04 LTS up to date.

    Tried creating folder and file with just StartupMode=cwd in it, re-logged in, but no change.
    try adding the xfce 4.10 and 4.12 PPAs
    Code:
    sudo add-apt-repository ppa:xubuntu-dev/xfce-4.10
    sudo add-apt-repository ppa:xubuntu-dev/xfce-4.12
    sudo apt-get update
    sudo apt-get dist-upgrade
    you will get quite a few upgrades and fixes for xfce stuff (tab file browsing in thunar for example)
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

  9. #9
    Join Date
    Jun 2005
    Location
    Toronto, Canada
    Beans
    Hidden!
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to change default "open file" location away from "recently used"?

    Here is some history.

  10. #10
    Join Date
    Jul 2012
    Beans
    318
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: How to change default "open file" location away from "recently used"?

    OK, thanks Toz. I am sticking with 12.04 LTS repos for now, will have to await 14.04
    The best things in life are free, so what are we paying for?

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •