You are not logged in.

#26 Today 17:25:24

the_isz
Member
Registered: 2009-04-14
Posts: 295

Re: [SOLVED] Sway and xdg-desktop-portal issues

seth wrote:

What happens if we replace all the "&&" w/ ";" for unconditional execution?

exec systemctl --user set-environment XDG_CURRENT_DESKTOP=sway; bash -c 'printenv > /tmp/ihatesystemd'; touch /tmp/ihatesystemd2; \
     systemctl --user import-environment DISPLAY \
                                         SWAYSOCK \
                                         WAYLAND_DISPLAY \
                                         XDG_CURRENT_DESKTOP; \
     systemctl --user start sway-session.target

That still doesn't create any files. And I even tried writing to ~/tmp as well, just to be sure there are no cleanup or overlay actions happening on /tmp.

I tried recreating our first experiment with /etc/sway/config.d/50-systemd-user.conf and that one now also doesn't create files anymore.

At this point, I'm pretty sure the file isn't used anymore at all.
Could it be that the update of xdg-desktop-portal to 1.22.1-2 caused that somehow?
Probably not, right?

Is it maybe that the backup I created (/etc/sway/config.d/50-systemd-user.conf.bak) is being used over that file?
I'll test that real quick, brb...

Offline

#27 Today 17:28:24

the_isz
Member
Registered: 2009-04-14
Posts: 295

Re: [SOLVED] Sway and xdg-desktop-portal issues

Nope, doesn't change anything either.
I'm so confused...

Offline

#28 Today 18:16:35

the_isz
Member
Registered: 2009-04-14
Posts: 295

Re: [SOLVED] Sway and xdg-desktop-portal issues

Oh God, I'm so ***** stupid.
I have to actually use /etc/sway/config.d/50-systemd-user.conf in my ~/.config/sway/config!

The one time the files in /tmp were created must have been the time I accidentally started sway as root - using the default config in /etc, which uses /etc/sway/config.d/50-systemd-user.conf.

I'm really sorry for wasting your time!
Let me quickly confirm this.

Offline

#29 Today 18:25:59

the_isz
Member
Registered: 2009-04-14
Posts: 295

Re: [SOLVED] Sway and xdg-desktop-portal issues

Yup, that's it. Now that I'm including /etc/sway/config.d/* in ~/.config/sway/config, xdg-desktop-portal-gtk starts and works as expected.

Marking this thread as solved.

Again, thanks for your help and sorry for wasting so much of your time!

Offline

Board footer

Powered by FluxBB