Opened 11 months ago

Last modified 6 weeks ago

#27903 new 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
Cc: sugrynidos, califuture, schappi Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

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

Change History (6)

comment:1 Changed 11 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 9 months ago by gk

Cc: sugrynidos added

#28428 is a duplicate.

comment:3 Changed 6 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
true
  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
false

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:

fix-filechooser.sh

#!/bin/sh

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
    fi
    sleep 1
done

comment:4 Changed 3 months ago by gk

Cc: califuture added

#30587 is a duplicate.

comment:5 Changed 3 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 https://superuser.com/questions/376242/bash-script-while-loop-if-variable-is-true
This fixed it.

if [ $VAL = "false" ]; then

comment:6 Changed 6 weeks ago by gk

Cc: schappi added

#31171 is a duplicate.

Note: See TracTickets for help on using tickets.