~craftyguy/superd#46: 
xdg-desktop-portal doesn't auto-start

I can't figure out why, but xdg-desktop-portal won't auto-start:

> superctl status xdg-desktop-portal
xdg-desktop-portal
   Status:        stopped                                                          
   Type:          simple                                                           
   PID:           -                                                                
   Uptime:        -                                                                
   Autostart:     ✓                                                                
   Loaded:        /home/hugo/.config/services/enabled/xdg-desktop-portal.service   
   Description:   Desktop integration portals for sandboxed apps
> superctl status
                         Status    PID    Autostart 
blueman-applet           started   4536   ✓           
calls                    stopped   -      -           
chatty                   stopped   -      -           
darkman                  started   4532   ✓           
display_switch           stopped   -      -           
dockerd-rootless         started   4531   ✓           
fnott                    stopped   -      -           
foot                     stopped   -      -           
gammastep                stopped   -      -           
himitsud                 started   4530   ✓           
kanshi                   stopped   -      -           
librespot-himitsu        stopped   -      -           
libvirtd                 started   4537   ✓           
light                    stopped   -      -           
mako                     started   4535   ✓           
mmsd-tng                 stopped   -      -           
mpris-proxy              stopped   -      -           
pipewire                 started   4529   ✓           
pipewire-pulse           started   4758   ✓           
ra-multiplex-server      started   4540   ✓           
swayidle                 stopped   -      -           
udiskie                  stopped   -      -           
vvmd                     stopped   -      -           
waybar                   stopped   -      -           
wireplumber              started   4760   ✓           
wob                      stopped   -      -           
wys                      stopped   -      -           
xdg-desktop-portal       started   6035   ✓           
xdg-desktop-portal-wlr   started   4759   ✓           
yubikey-touch-detector   started   4538   ✓

Looking at the logs, it seems that there wasn't even at attempt to start it:

> date
Thu Jul 27 09:00:37 CEST 2023
> stat xdg-desktop-portal.log
  File: xdg-desktop-portal.log
  Size: 1031      	Blocks: 8          IO Block: 4096   regular file
Device: 15h/21d	Inode: 25050700    Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/    hugo)   Gid: ( 1000/    hugo)
Access: 2023-07-27 08:59:59.522245389 +0200
Modify: 2023-07-23 17:11:16.437425044 +0200
Change: 2023-07-23 17:11:16.437425044 +0200

If I run superctl start xdg-desktop-portal, it starts properly.

Status
REPORTED
Submitter
~whynothugo
Assigned to
No-one
Submitted
1 year, 5 months ago
Updated
1 year, 5 months ago
Labels
No labels applied.

~craftyguy 1 year, 5 months ago

On Thu, 27 Jul 2023 07:05:19 +0000 "~whynothugo" outgoing@sr.ht wrote:

I can't figure out why, but xdg-desktop-portal won't auto-start:

> superctl status xdg-desktop-portal
xdg-desktop-portal
   Status:        stopped                                                          
   Type:          simple                                                           
   PID:           -                                                                
   Uptime:        -                                                                
   Autostart:     ✓                                                                
   Loaded:        /home/hugo/.config/services/enabled/xdg-desktop-portal.service   
   Description:   Desktop integration portals for sandboxed apps
> superctl status
                         Status    PID    Autostart 
blueman-applet           started   4536   ✓           
calls                    stopped   -      -           
chatty                   stopped   -      -           
darkman                  started   4532   ✓           
display_switch           stopped   -      -           
dockerd-rootless         started   4531   ✓           
fnott                    stopped   -      -           
foot                     stopped   -      -           
gammastep                stopped   -      -           
himitsud                 started   4530   ✓           
kanshi                   stopped   -      -           
librespot-himitsu        stopped   -      -           
libvirtd                 started   4537   ✓           
light                    stopped   -      -           
mako                     started   4535   ✓           
mmsd-tng                 stopped   -      -           
mpris-proxy              stopped   -      -           
pipewire                 started   4529   ✓           
pipewire-pulse           started   4758   ✓           
ra-multiplex-server      started   4540   ✓           
swayidle                 stopped   -      -           
udiskie                  stopped   -      -           
vvmd                     stopped   -      -           
waybar                   stopped   -      -           
wireplumber              started   4760   ✓           
wob                      stopped   -      -           
wys                      stopped   -      -           
xdg-desktop-portal       started   6035   ✓

Hmm... interesting how this status conflicts with the one above that shows "stopped"...

xdg-desktop-portal-wlr started 4759 ✓
yubikey-touch-detector started 4538 ✓


Looking at the logs, it seems that there wasn't even at attempt to start it:

The superd log should show whether or not it tried to start it.

~whynothugo 1 year, 5 months ago

Can you check if it is running? ps aux | grep xdg-desktop-portal?

It might be that some application tries to talk to it and dbus-daemon auto-starts it.

Register here or Log in to comment, or comment via email.