You are not logged in.

#1 2020-07-10 02:26:25

mjd119
Member
Registered: 2020-05-07
Posts: 119

[SOLVED] Consistent file manager pop-up window

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

#2 2020-07-10 06:36:15

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,265

Re: [SOLVED] Consistent file manager pop-up window

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.

Offline

#3 2020-07-11 12:55:58

ondoho
Member
Registered: 2013-04-30
Posts: 692
Website

Re: [SOLVED] Consistent file manager pop-up window

GTK applications often use the gtkfilechooser which has some options:
https://wiki.archlinux.org/index.php/GT … p_location

Offline

Board footer

Powered by FluxBB