You are not logged in.

#1 2024-08-14 04:55:17

PFleur
Member
Registered: 2022-12-31
Posts: 23

[SOLVED] xdg-desktop-portal not working

I've been trying to get xdg-desktop-protals to work but it just doesn't seem to be doing anything. I've tried reinstalling xdg-desktop-portals, xdg-desktop-portals-gtk, and xdg-desktop-portals-lxqt with no change. My system is updated as of a few hours ago. The only thing I have found is that the xdg-desktop-portals.service referred to in the wiki page doesn't seem to exist as I found when trying to make a drop-in snippet returned "No files found for xdg-desktop-portal.service.". I can't seem to find anything on the internet or the forums for this, does anyone have an idea how to fix this?

Last edited by PFleur (2024-08-14 22:25:46)

Offline

#2 2024-08-14 04:58:57

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] xdg-desktop-portal not working

What is it you are actually trying to do?

Please read https://xyproblem.info/ before replying.


Jin, Jîyan, Azadî

Offline

#3 2024-08-14 05:19:11

PFleur
Member
Registered: 2022-12-31
Posts: 23

Re: [SOLVED] xdg-desktop-portal not working

I am trying to use xdg-desktop-portal for a file chooser for programs that do not have their own (eg steam) and to integrate flatpak programs.

Offline

#4 2024-08-14 06:07:20

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] xdg-desktop-portal not working

Which desktop environment is this?

To edit the xdg-desktop-portal unit file run this command as your normal user:

systemctl --user edit xdg-desktop-portal

Jin, Jîyan, Azadî

Offline

#5 2024-08-14 19:32:35

PFleur
Member
Registered: 2022-12-31
Posts: 23

Re: [SOLVED] xdg-desktop-portal not working

I am running DWM.

Thank you using xdg-desktop-portal instead of xdg-desktop-portal.service worked, although adding

[Service]
Environment="XDG_CURRENT_DESKTOP=KDE"

to enforce a desktop environment didn't have an effect as far as I can see. I've KDE, XFCE, and LXQt.

Offline

#6 2024-08-14 20:10:44

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] xdg-desktop-portal not working

PFleur wrote:

using xdg-desktop-portal instead of xdg-desktop-portal.service worked

It was the --user flag that made the difference. The systemctl command assumes a .service suffix for unit files.

PFleur wrote:

didn't have an effect

Does your ~/.xinitrc source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh?

You should have copied the xintrc template from /etc/X11/xinit/ and edited that.


Jin, Jîyan, Azadî

Offline

#7 2024-08-14 22:25:01

PFleur
Member
Registered: 2022-12-31
Posts: 23

Re: [SOLVED] xdg-desktop-portal not working

Thank you for the clarification and sorry for assuming what was the reason.

I did not base my .xinitrc off the one in /etc/X11/xinit and after doing so it's now everything seems to be working fine.

Thank you for your help.

Offline

Board footer

Powered by FluxBB