Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #26760 > unrolled thread

preferences for file chooser: where is it stored? (with answers)

Started byEli the Bearded <*@eli.users.panix.com>
First post2019-04-20 17:50 +0000
Last post2019-04-20 17:50 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.os.linux.misc


Contents

  preferences for file chooser: where is it stored? (with answers) Eli the Bearded <*@eli.users.panix.com> - 2019-04-20 17:50 +0000

#26760 — preferences for file chooser: where is it stored? (with answers)

FromEli the Bearded <*@eli.users.panix.com>
Date2019-04-20 17:50 +0000
Subjectpreferences for file chooser: where is it stored? (with answers)
Message-ID<eli$1904200928@qaz.wtf>
Posting not to ask questions but to share information I've found hard to
learn. (But I do have some questions if people have answers.)

This file chooser:

https://img.on-a.pizza/file-chooser.png

I've figured out how to set defaults for the "desktop" directories using 
XDG settings. I was clued into this by someone mentioning that it was an
XDG configurable and doing a lot of web searches. Since I don't use a
window manager that has a "desktop" full of files, and since I like to
name everything in lowercase, the defaults always irked me.

  $ cat ~/.config/user-dirs.dirs
  # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
  # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
  # absolute path. No other format is supported.
  XDG_DESKTOP_DIR="$HOME/downloads"
  XDG_DOWNLOAD_DIR="$HOME/downloads"
  XDG_TEMPLATES_DIR="$HOME/tmp"
  XDG_PUBLICSHARE_DIR="$HOME/tmp"
  XDG_DOCUMENTS_DIR="$HOME/notes"
  XDG_MUSIC_DIR="$HOME/tmp"
  XDG_PICTURES_DIR="$HOME/images"
  XDG_VIDEOS_DIR="$HOME/video"
  $

Those are the ones in the top left quick directory navigation box.
Notice how Recent and Home are not set with XDG, and "Desktop" shows as
"Desktop" even though the directory has been reset. (I'd be happy to
have Recent and Desktop go away.)


The next box is a list of mount points from /etc/fstab, but not a
complete list. It seems to be limited to the vfat and iso9660 filesystem
types:

  $ tail -16 /etc/fstab
  # misc old harddrives
  UUID=53958d65-ca0a-46d7-8964-956b39e026de /5395 ext4 noauto 0 0
  UUID=53946765-20ae-4693-bfe0-a546242379d7 /5394 ext4 noauto 0 0
  UUID=10afd738-11f1-4707-bc0d-172e7e940fc2 /10af ext4 noauto 0 0
  UUID=2bd5733b-93a9-4c65-b282-44cf8cf8fb73 /2bd5 ext4 noauto 0 0
  UUID=cc54c725-dd22-4165-9e0c-1baf8f1f4896 /cc54 ext3 noauto 0 0
  #
  # camera cards
  UUID=0101-0014 /0101    vfat    noauto,user 0 0
  #
  # memory sticks
  UUID=3CD1-8B29 /dw      vfat    noauto,user 0 0
  UUID=3736-BD70 /tv      vfat    noauto,user 0 0
  #
  # Generic ISO mounter
  /var/tmp/iso.iso        /iso    iso9660 ro,users,noauto 0 0

Maybe the trigger is "user" as an option? Either way I don't usually
find that helpful in my file selections and wouldn't mind if it went
away, but I'm not about to remove /etc/fstab entries for that purpose.


Then there's that third set of directories there, like the shown
/var/www/media one I have in the screenshot above. I have figured out
how to add things there in the file chooser itself, but I can't remember
how and have to refigure it each time. So I went hunting by recursive
grep to locate where that preference is stored.

  $ find ~ -type f -exec grep -l var.*www.*media {} +
  ...
  /home/username/.config/gtk-3.0/bookmarks
  ...
  $ cat /home/username/.config/gtk-3.0/bookmarks
  file:///var/www/media
  file:///tmp
  file:///var/www/html/cv
  $ 


Finally, if "Other locations" could go away as well, that would be nice,
too. The height of the dialog box seems to be stretched by adding in new
things, so my adding "bookmarks" from the places I actually have files I
want to upload starts to make the window ungainly.

Elijah
------
pretty much only uses that file chooser from his web browser

[toc] | [standalone]


Back to top | Article view | comp.os.linux.misc


csiph-web