Opened 13 months ago

Last modified 52 minutes ago

#27903 needs_review defect

Tor Browser 8 does not respect gtk3 settings

Reported by: gk Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords: tbb-8.0-issues, tbb-regression, TorBrowserTeam201910R
Cc: sugrynidos, califuture, schappi Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


Sorting folders first is ignored in Tor Browser 8 on the file chooser dialog. Rather, the default gtk3 behavior is used which mixes files and folders. However, that worked on Tor Browser 7.

Child Tickets

Attachments (1)

gsettings_backend.patch (615 bytes) - added by cypherpunks 54 minutes ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 13 months ago by gapegas7uftp

Also, many preference changes not respected when re-entering file chooser dialog.

To trigger,

  1. Open a file (CTRL-O)
  2. Right-click and change Sort Folders Before Files (check)
  3. Change sorting field (Modified)
  4. Also, could make other changes (like Show hideen files or Show Time)
  5. Double click on a file to open (a test file)
  6. Do other things
  7. Open a file again (CTRL-O)
  8. Setting changes made before are now gone

This also works same way with Save Page (CTRL-S)

Also, new in Tor Browser 8, clicking on Home (Open your personal folder) in File Chooser now goes to tor_browser_LANG/Browser instead of actual home directory. This is not too big of a thing, but it is different than Tor Browser 7. Maybe it is more security better, so not a thing anyway.

On Linux. Also, I am using a settings.ini file for bettter GTK3 ticket:27546

comment:2 Changed 11 months ago by gk

Cc: sugrynidos added

#28428 is a duplicate.

comment:3 Changed 8 months ago by donnm

TBB 8 also clobbers gtk file chooser settings for other gtk programs (reported in #28428). For example, whether the file chooser or Nautilus sorts folders before files.

  1. Running:
$ gsettings set org.gtk.Settings.FileChooser sort-directories-first true
$ gsettings get org.gtk.Settings.FileChooser sort-directories-first
  1. Then in TBB 8, CTRL-O or CTRL-S to open file chooser. Close it without doing anything.
  1. Again running:
$ gsettings get org.gtk.Settings.FileChooser sort-directories-first

The issue I describe here is more related to #28428, which I would argue is not a duplicate of this report (#27903) because the latter deals with TBB 8 not respecting gtk settings, while #28428 deals with TBB 8 actively clobbering gtk settings.

I created a hack workaround that just tries to maintain my preference:


while true; do 
    VAL=$(DISPLAY=:0 gsettings get org.gtk.Settings.FileChooser sort-directories-first)

    if [ $VAL == "false" ]; then
        echo "Fixing file chooser settings."
        DISPLAY=:0 gsettings set org.gtk.Settings.FileChooser sort-directories-first true
    sleep 1

comment:4 Changed 5 months ago by gk

Cc: califuture added

#30587 is a duplicate.

comment:5 Changed 5 months ago by califuture

Thanks for the workaround script.
On Ubuntu 19.04 I had to drop an "=" to get it to work.
I kept getting an error like
This fixed it.

if [ $VAL = "false" ]; then

comment:6 Changed 3 months ago by gk

Cc: schappi added

#31171 is a duplicate.

comment:7 Changed 18 hours ago by cypherpunks

dconf has a partial client/server architecture. It uses D-Bus. The server is only involved in writes (and is not activated in the user session until the user modifies a preference).

A "user-db" line specifies a user database. These databases are found in $XDG_CONFIG_HOME/dconf/. The name of the file to open in that directory is exactly as it is written in the profile. This file is expected to be in the binary dconf database format. Note that XDG_CONFIG_HOME cannot be set/modified per terminal or session, because then the writer and reader would be working on different DBs (the writer is started by DBus and cannot see that variable).

We can isolate Tor Browser from dconf-service:


comment:8 Changed 12 hours ago by cypherpunks

Can confirm that running GSETTINGS_BACKEND=memory ./start-tor-browser fixes it. Using firejail with --nodbus option also works.

I propose that the GSETTINGS_BACKEND fix above be added to the start-tor-browser script which also sets and exports HOME.

comment:9 in reply to:  8 Changed 2 hours ago by gk

Replying to cypherpunks:

Can confirm that running GSETTINGS_BACKEND=memory ./start-tor-browser fixes it. Using firejail with --nodbus option also works.

I propose that the GSETTINGS_BACKEND fix above be added to the start-tor-browser script which also sets and exports HOME.

Does not sound unreasonable to me at first glance. Care to write a small patch for that so we can review it?

Changed 54 minutes ago by cypherpunks

Attachment: gsettings_backend.patch added

comment:10 Changed 52 minutes ago by gk

Keywords: TorBrowserTeam201910R added
Status: newneeds_review


Note: See TracTickets for help on using tickets.