! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
File Open dialog shows non-existent folders
Status:
RESOLVED: INVALID

Comments

Description thangalin 2019-04-01 02:38:28 CEST
Created attachment 8377 
Screen shot showing non-existent folders

Background

Some people make heavy use of the command line and therefore don't like having directories with capital letters. Other people prefer not having empty directories in their $HOME directory. In these cases, such people may opt to eliminate those directories (e.g., Download, Documents, Music, Pictures, Videos, etc.).

Replicate

1. Install OS with xfce4 window manager
2. Log in
3. Change $HOME/.config/user-dirs.dirs as follows:

XDG_DESKTOP_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"

4. Log out
5. Log in
6. Launch Firefox (or any web browser)
7. Open a file (e.g., type Ctrl+O)

Expected Results

No non-existent folders in the left-hand panel.

Actual Results

Folders that the user specifically eliminated from their system are still showing up in the file dialog.
Comment 1 thangalin 2019-04-01 02:39:34 CEST
Created attachment 8378 
Expected results for the file open dialog

There does not appear to be a way to disable the default list of directories, despite the user removing them from the user-dirs.dirs configuration file.
Comment 2 alexxcons editbugs 2019-04-01 13:05:07 CEST
Thanks for reporting !

As far as I can tell, the dialog in question is not directly a thunar dialog.

It is a GtkFileChooserDialog. The current versions of firefox use gtk3 including the gtk3 file chooser dialog window that you are talking about.

Theoretically there are options to manage the displayed shortcuts with "gtk_file_chooser_list_shortcut_folders", "gtk_file_chooser_add_shortcut_folder" and "gtk_file_chooser_remove_shortcut_folder".

So if you want to have it fixed for firefox, you will need to open a bug against firefox (or the web browser of your choice )


Inside thunar the dialog only is used in the renamer "right-click add files" and the "open with --> other application" dialog.
( there it is still unfixed ... so we could rename this bug title accordingly, instead of resolving it as invalid )
Comment 3 thangalin 2019-04-01 20:48:14 CEST
> It is a GtkFileChooserDialog. The current versions of firefox use gtk3 including the gtk3 file chooser dialog window that you are talking about.

The same dialog is used by LibreOffice, Thunderbird, Pamac (Arch Linux gtk3 package manager), Zotero (bibtex manager), the XFCE4 Desktop settings manager, and likely many others, including Thunar. This implies it's a bit closer to the OS layer than Firefox.

Here's another way to reveal the dialog:

1. Start Thunar
2. Right-click on any folder.
3. Click Create Archive.
4. Set Location to: Other

The open Location dialog appears with the non-existent directories.

It does make sense that all of these are using the GtkFileChooserDialog, so I'll add a note on its issue tracker.

You may close this, if you like, thank you.
Comment 4 alexxcons editbugs 2019-04-02 11:21:43 CEST
> Here's another way to reveal the dialog:
Will only work if thunar-archive-plugin is installed.
And depends on the used archiver. With file-roller I get the dialog. But could be different for e.g. XArchiver or arc.

You are right, it does not make much sense to fix the problem in each application using GtkFileChooserDialog.
Much better would be to fix it inside gtk3 itself .. so I will close this bug.

Bug #15250

Reported by:
thangalin
Reported on: 2019-04-01
Last modified on: 2019-04-02

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Attachments

Additional information