You are not logged in.
I want to make it so that an application will open a relevant folder by default when you go to choose a file. For example, I want the same popup window for different applications and to start looking in a related folder (e.g. ~/Documents for qpdfview and ~/Pictures for gwenview). Right now libreoffice writer does this but the file manager dialog looks different.
I was reading about the xdg-desktop-portal package and its relation to flatpak. To add to the confusion, I am unsure about the differences between xdg-desktop-portal, xdg-desktop-portal-kde, and xdg-desktop-portal-gtk. I am running the i3 window manager so I am trying to get a smoother experience. Do these packages have to do with what folder is opened in a file manager by default when you want to choose a file to open (e.g. a pdf in qpdfview).
Last edited by mjd119 (2020-07-24 23:49:03)
Offline
Do these packages have to do with what folder is opened in a file manager by default when you want to choose a file to open
No. The open/save dialogs are not file managers and totally unrelated.
Individual clients could store the last used path or allow you to configure which path is used, but you cannot control that externally.
Some clients may just use the working directory, which will typically be $HOME but you could try to run eg. "env -C /path/you/like qpdfview" to control that.
Online
GTK applications often use the gtkfilechooser which has some options:
https://wiki.archlinux.org/index.php/GT … p_location
Offline