LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-17-2023, 11:59 AM   #1
giomat
Member
 
Registered: Jul 2017
Posts: 339

Rep: Reputation: 239Reputation: 239Reputation: 239
xdg-desktop-portal-* processes from sddm


At work i use fedora for development and recently switched to kde and sddm for a change.
At home i use slackware-current with kde and sddm.

A thing i just noticed is the following:
- in fedora i get 3 xdg-desktop-portal processes (xdg-desktop-portal, xdg-desktop-portal-kde, xdg-desktop-portal-gtk), all under my username
- in slackware i get 6! three on my username and three under the sddm username

So what i would like to know is why my sddm is spawning this processes? Does anyone else notice the same thing?
I have no idea what the correct behaviour would be, but i'm leaning on fedora's since these portals where meant to be used on a graphical user session for sandboxing purposes
 
Old 02-18-2023, 05:18 AM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,402

Rep: Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136
Maybe related to the way systemd handles processes
 
Old 02-18-2023, 05:24 PM   #3
giomat
Member
 
Registered: Jul 2017
Posts: 339

Original Poster
Rep: Reputation: 239Reputation: 239Reputation: 239
After some investigations i ended up in a bug report stating issues with processes of xdg-desktop-portal spawned by sddm too soon.
https://bugs.kde.org/show_bug.cgi?id=458865
near the end there's a link to a commit, where its shown an env variable to disable qt from spawning desktop portals, QT_NO_XDG_DESKTOP_PORTAL. This, as far as I understood, was made to prevent the qt part of sddm to set the xcursor before all the rest of the user environment was completely loaded.

So i exported this var in my /etc/environment and rebooted and now I only have desktop-portals under my user.
They also seems to work, at least from firefox i can open my downloads in dolphin just fine. I did notice a slow startup though.
 
2 members found this post helpful.
Old 02-18-2023, 05:34 PM   #4
giomat
Member
 
Registered: Jul 2017
Posts: 339

Original Poster
Rep: Reputation: 239Reputation: 239Reputation: 239
Also found this patch from a gentoo overlay
https://www.gentoofan.org/gentoo/pol...o-portal.patch
And this fedora discussion where they do the same thing in fedora37
https://ask.fedoraproject.org/t/core...al-kde/28552/2
 
3 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] [False Alarm, forgot to check pkg log] xdg-desktop-portal respawning too quickly walecha Slackware 1 07-27-2022 02:22 PM
wlroots, sway, xdg-desktop-portal-wlroots, and other "third position" wayland window mangers for Slackware users. Lockywolf Slackware 19 03-21-2022 10:23 PM
-current: gtk3/gtk4 font rendering require xdg-desktop-portal-gnome in plasma wayland walecha Slackware 4 11-10-2021 06:38 AM
sddm not starting / Auth: sddm-helper exited with 6 (or 11) wael_h Slackware 2 07-11-2021 12:02 PM
configure: error: The xdg python module is required (pyxdg or python-xdg) Sargalus Linux - Software 7 03-24-2010 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration