You are not logged in.
The file picker on my system won't work. This includes uploading a file in chromium or trying to browse to add a non-steam game in steam.
I have xdg-desktop-portal-gtk installed.
chris@nzxt ~ [3]> pacman -Qs xdg-desktop-portal
local/xdg-desktop-portal 1.18.2-1
Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-gtk 1.15.1-1
A backend implementation for xdg-desktop-portal using GTK
But looking at the status, it looks like xdg-desktop-portal-gtk fails to start
chris@nzxt ~ [3]> systemctl --user status xdg-desktop-portal
● xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
Active: active (running) since Thu 2024-04-11 20:05:42 EDT; 1h 35min ago
Main PID: 3862 (xdg-desktop-por)
Tasks: 6 (limit: 18979)
Memory: 3.4M (peak: 4.3M)
CPU: 109ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/xdg-desktop-portal.service
└─3862 /usr/lib/xdg-desktop-portal
Apr 11 20:05:46 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:05:46 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:05:46 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:05:47 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:05:47 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:05:47 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:05:47 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:10:34 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:10:36 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
Apr 11 20:10:37 nzxt xdg-desktop-por[3862]: Backend call failed: Could not activate remote peer: startup job failed.
chris@nzxt ~> systemctl --user status xdg-desktop-portal-gtk
× xdg-desktop-portal-gtk.service - Portal service (GTK/GNOME implementation)
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal-gtk.service; static)
Active: failed (Result: exit-code) since Thu 2024-04-11 20:10:37 EDT; 1h 30min ago
Process: 4872 ExecStart=/usr/lib/xdg-desktop-portal-gtk (code=exited, status=1/FAILURE)
Main PID: 4872 (code=exited, status=1/FAILURE)
CPU: 14ms
Apr 11 20:10:37 nzxt systemd[606]: Starting Portal service (GTK/GNOME implementation)...
Apr 11 20:10:37 nzxt xdg-desktop-por[4872]: cannot open display:
Apr 11 20:10:37 nzxt systemd[606]: xdg-desktop-portal-gtk.service: Main process exited, code=exited, status=1/FAILURE
Apr 11 20:10:37 nzxt systemd[606]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Apr 11 20:10:37 nzxt systemd[606]: Failed to start Portal service (GTK/GNOME implementation).
Apr 11 20:10:37 nzxt systemd[606]: xdg-desktop-portal-gtk.service: Start request repeated too quickly.
Apr 11 20:10:37 nzxt systemd[606]: xdg-desktop-portal-gtk.service: Failed with result 'exit-code'.
Apr 11 20:10:37 nzxt systemd[606]: Failed to start Portal service (GTK/GNOME implementation).
I assume this failure to start is the reason why it's not working, so what I would like some help with is troubleshooting why it's failing to start. Thank you!
Last edited by rockzombie2 (2024-04-20 01:27:35)
Offline
loginctl session-status
If you're using xinit/startx, see the last link below (that part about what to include at least)
Online
I do not use Gnome but KDE. My intention is not to highjack your post but it could be related...
I updated today and have now a problem with xdg-desktop-portal under KDE. Unfortunately, I haven't found the reason yet nor a solution.
% systemctl --user status xdg-desktop-portal.service
xdg-desktop-portal.service - Portal service
Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
Active: failed (Result: core-dump) since Fri 2024-04-12 20:07:42 CEST; 9min ago
Process: 2647 ExecStart=/usr/lib/xdg-desktop-portal (code=dumped, signal=SEGV)
Main PID: 2647 (code=dumped, signal=SEGV)
CPU: 67ms
avr 12 20:07:42 manchester systemd[780]: Starting Portal service...
avr 12 20:07:42 manchester systemd-coredump[2656]: [?] Process 2647 (xdg-desktop-por) of user 1000 dumped core.
Stack trace of thread 2647:
#0 0x000055a182a33b10 n/a (xdg-desktop-portal + 0x67b10)
#1 0x000055a182a33cca n/a (xdg-desktop-portal + 0x67cca)
#2 0x000055a182a409bd n/a (xdg-desktop-portal + 0x749bd)
#3 0x00007f57ace85098 n/a (libgio-2.0.so.0 + 0x108098)
#4 0x00007f57ace1e204 n/a (libgio-2.0.so.0 + 0xa1204)
#5 0x00007f57ace2204d n/a (libgio-2.0.so.0 + 0xa504d)
#6 0x00007f57ace80313 n/a (libgio-2.0.so.0 + 0x103313)
#7 0x00007f57ace1e204 n/a (libgio-2.0.so.0 + 0xa1204)
#8 0x00007f57ace1e23d n/a (libgio-2.0.so.0 + 0xa123d)
#9 0x00007f57acfa4199 n/a (libglib-2.0.so.0 + 0x5a199)
#10 0x00007f57ad0033bf n/a (libglib-2.0.so.0 + 0xb93bf)
#11 0x00007f57acfa4dc7 g_main_loop_run (libglib-2.0.so.0 + 0x5adc7)
#12 0x000055a1829dd2e7 n/a (xdg-desktop-portal + 0x112e7)
#13 0x00007f57ac966cd0 n/a (libc.so.6 + 0x25cd0)
#14 0x00007f57ac966d8a __libc_start_main (libc.so.6 + 0x25d8a)
#15 0x000055a1829dd8d5 n/a (xdg-desktop-portal + 0x118d5)
Stack trace of thread 2650:
#0 0x00007f57aca4788d syscall (libc.so.6 + 0x10688d)
#1 0x00007f57acffe487 g_cond_wait (libglib-2.0.so.0 + 0xb4487)
#2 0x00007f57acf6e454 n/a (libglib-2.0.so.0 + 0x24454)
#3 0x00007f57acfd329e n/a (libglib-2.0.so.0 + 0x8929e)
#4 0x00007f57acfd2065 n/a (libglib-2.0.so.0 + 0x88065)
#5 0x00007f57ac9cc55a n/a (libc.so.6 + 0x8b55a)
#6 0x00007f57aca49a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 2651:
#0 0x00007f57aca3c0bf __poll (libc.so.6 + 0xfb0bf)
#1 0x00007f57ad003306 n/a (libglib-2.0.so.0 + 0xb9306)
#2 0x00007f57acfa4dc7 g_main_loop_run (libglib-2.0.so.0 + 0x5adc7)
#3 0x00007f57ace8683c n/a (libgio-2.0.so.0 + 0x10983c)
#4 0x00007f57acfd2065 n/a (libglib-2.0.so.0 + 0x88065)
#5 0x00007f57ac9cc55a n/a (libc.so.6 + 0x8b55a)
#6 0x00007f57aca49a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 2649:
#0 0x00007f57aca3c0bf __poll (libc.so.6 + 0xfb0bf)
#1 0x00007f57ad003306 n/a (libglib-2.0.so.0 + 0xb9306)
#2 0x00007f57acfa3712 g_main_context_iteration (libglib-2.0.so.0 + 0x59712)
#3 0x00007f57acfa3762 n/a (libglib-2.0.so.0 + 0x59762)
#4 0x00007f57acfd2065 n/a (libglib-2.0.so.0 + 0x88065)
#5 0x00007f57ac9cc55a n/a (libc.so.6 + 0x8b55a)
#6 0x00007f57aca49a3c n/a (libc.so.6 + 0x108a3c)
Stack trace of thread 2652:
#0 0x00007f57aca4788d syscall (libc.so.6 + 0x10688d)
#1 0x00007f57acffee43 g_cond_wait_until (libglib-2.0.so.0 + 0xb4e43)
#2 0x00007f57acf6e425 n/a (libglib-2.0.so.0 + 0x24425)
#3 0x00007f57acfd7c1b n/a (libglib-2.0.so.0 + 0x8dc1b)
#4 0x00007f57acfd2065 n/a (libglib-2.0.so.0 + 0x88065)
#5 0x00007f57ac9cc55a n/a (libc.so.6 + 0x8b55a)
#6 0x00007f57aca49a3c n/a (libc.so.6 + 0x108a3c)
ELF object binary architecture: AMD x86-64
avr 12 20:07:42 manchester systemd[780]: xdg-desktop-portal.service: Main process exited, code=dumped, status=11/SEGV
avr 12 20:07:42 manchester systemd[780]: xdg-desktop-portal.service: Failed with result 'core-dump'.
avr 12 20:07:42 manchester systemd[780]: Failed to start Portal service.
Could you check if your xdg-desktop-portal also coredumps ?
Edit : apparently not from re-reading your post. Maybe it's not related after all...
Last edited by daysfled (2024-04-12 18:25:24)
Offline
https://wiki.archlinux.org/title/Debuginfod might shed more light on your crash, but the OPs
xdg-desktop-por[4872]: cannot open display:
yells "session problem".
Online
Yes Seth, you are right of course.
When I saw OP's post just after being hit with my own problem, I decided to post my message as a hint : who knows (well, not me obviously) maybe it was related, it might help OP. Just after posting, I re-read OP's message and it became obvious. Hence my edit.
I could of course have deleted the entire content of my message, saying it was unrelated after all, but I kept if for honesty's sake. Was I wrong ?
Anyway, let me take the opportunity to thank you here. I read this forum much more than I post and I'm always impressed by your knowledge. I have learned so many things just by reading your replies to various posts !
Ok, sorry for the interruption. Back to OP's problem...
Offline
You didn't do anything wrong. You experienced a similar symptom and sought to join forces and when you realized that the pattern doesn't fit pointed that out.
Do you have an open thread w/ your crash and could debuginfod add more symbols to the backtrace (so one might be better positioned to ballpark the context of the crash)?
Online
Using gdb (and, yes, debuginfod) I realised that xdg-desktop-portal version 1.18.3-1 crashed because of my personal config file (which hadn't changed and worked with previous version). I corrected my config and everything works again. I didn't investigate further even though I think that coredumping because of a bad config file is a bug.
More detail for anyone who might come across the same problem.
I use kde with xdg-desktop-portal-kde and hyprland with xdg-desktop-hyprland (even though the hyprland wiki used to warn about not using both).
Since I wanted firefox to use kde's file picker, I had created the file ~/.config/xdg-desktop-portal/portals.conf containing
[preferred]
org.freedesktop.impl.portal.FileChooser=kde
I have now replaced it with file ~/.config/xdg-desktop-portal/hyprland-portals.conf containing
[preferred]
default=hyprland
org.freedesktop.impl.portal.FileChooser=kde
Last edited by daysfled (2024-04-13 22:22:17)
Offline
loginctl session-status
If you're using xinit/startx, see the last link below (that part about what to include at least)
Not sure what you mean about the last link, but here's the output of the command:
chris@nzxt ~> loginctl session-status
1 - chris (1000)
Since: Tue 2024-04-16 19:30:23 EDT; 7min ago
State: active
Leader: 493 (login)
Seat: seat0; vc1
TTY: tty1
Remote: no
Service: login
Type: tty
Class: user
Idle: no
Unit: session-1.scope
├─ 493 "login -- chris"
├─ 587 -fish
├─ 637 /bin/sh /usr/bin/startx
├─ 652 xinit /home/chris/.xinitrc -- /etc/X11/xinit/xserverrc :0 vt1 -keeptty -auth /tmp/serverauth.NZEO1XG51x
├─ 653 /usr/lib/Xorg -nolisten tcp :0 vt1 -keeptty -auth /tmp/serverauth.NZEO1XG51x
├─ 678 dwm
├─ 682 picom
├─ 683 xscreensaver
├─ 684 sh /home/chris/.xinitrc
├─ 686 volumeicon
├─ 688 xscreensaver-systemd
├─ 690 spotifyd
├─ 730 sh /home/chris/.xinitrc
├─ 753 /usr/bin/fish
├─ 762 "/usr/lib/electron29/electron /usr/lib/vesktop/app.asar"
├─ 765 "/usr/lib/electron29/electron --type=zygote --no-zygote-sandbox"
├─ 766 "/usr/lib/electron29/electron --type=zygote"
├─ 768 "/usr/lib/electron29/electron --type=zygote"
├─ 799 "/usr/lib/electron29/electron --type=gpu-process --enable-crash-reporter=adc696ce-87d2-43ff-9163-6e08130f3b97,no_channel --user-data-dir=/home/chris/.config/vesktop --gpu-prefer>
├─ 826 "/usr/lib/electron29/electron --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --enable-crash-reporter=adc696ce-87d2-43ff->
├─ 853 "/usr/lib/electron29/electron --type=broker"
├─ 882 "/usr/lib/electron29/electron --type=renderer --enable-crash-reporter=adc696ce-87d2-43ff-9163-6e08130f3b97,no_channel --user-data-dir=/home/chris/.config/vesktop --app-path=/usr>
├─ 912 "/usr/lib/electron29/electron --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US --service-sandbox-type=none --enable-crash-reporter=adc696ce-87d2-43ff-9163>
├─1083 /usr/lib/chromium/chromium
├─1085 /usr/lib/chromium/chrome_crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler "--database=/home/chris/.config/chromium/Crash Reports" "--annotation=c>
├─1087 /usr/lib/chromium/chrome_crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler "--database=/home/chris/.config/chromium/Crash Reports" "--annotat>
├─1091 "/usr/lib/chromium/chromium --type=zygote --no-zygote-sandbox --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable"
├─1092 "/usr/lib/chromium/chromium --type=zygote --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable"
├─1094 "/usr/lib/chromium/chromium --type=zygote --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable"
├─1115 "/usr/lib/chromium/chromium --type=gpu-process --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAg>
├─1121 "/usr/lib/chromium/chromium --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --crashpad-handler-pid=1085 --enable-crash-re>
├─1130 "/usr/lib/chromium/chromium --type=utility --utility-sub-type=storage.mojom.StorageService --lang=en-US --service-sandbox-type=utility --crashpad-handler-pid=1085 --enable-crash>
├─1138 "/usr/lib/chromium/chromium --type=broker"
├─1159 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─1226 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --extension-process --change-stack-guard-on-fork=enable --lang=en-US >
├─1269 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --extension-process --change-stack-guard-on-fork=enable --lang=en-US >
├─1291 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --extension-process --change-stack-guard-on-fork=enable --lang=en-US >
├─1305 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --extension-process --change-stack-guard-on-fork=enable --lang=en-US >
├─1517 "/usr/lib/chromium/chromium --type=utility --utility-sub-type=audio.mojom.AudioService --lang=en-US --service-sandbox-type=none --crashpad-handler-pid=1085 --enable-crash-report>
├─1554 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─1605 "/usr/lib/chromium/chromium --type=utility --utility-sub-type=data_decoder.mojom.DataDecoderService --lang=en-US --service-sandbox-type=service --crashpad-handler-pid=1085 --ena>
├─1614 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─1615 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─1645 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─1656 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─1757 cool-retro-term
├─1772 /usr/bin/fish
├─1875 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─1905 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─2138 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─2177 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─2204 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─2813 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─2823 "/usr/lib/chromium/chromium --type=renderer --crashpad-handler-pid=1085 --enable-crash-reporter=,Arch Linux --change-stack-guard-on-fork=enable --lang=en-US --num-raster-threads>
├─3381 sleep 1s
├─3384 loginctl session-status
└─3385 less
Apr 16 19:30:27 nzxt spotifyd[685]: No config file specified. Running with default values
Apr 16 19:30:27 nzxt spotifyd[685]: No username specified. Checking username_cmd
Apr 16 19:30:27 nzxt spotifyd[685]: No username_cmd specified
Apr 16 19:30:27 nzxt spotifyd[685]: No password specified. Checking password_cmd
Apr 16 19:30:27 nzxt spotifyd[685]: No password_cmd specified
Apr 16 19:30:27 nzxt spotifyd[685]: No proxy specified
Apr 16 19:30:27 nzxt spotifyd[685]: Daemonizing running instance
Apr 16 19:30:27 nzxt spotifyd[690]: Detached from shell, now running in background.
Apr 16 19:30:27 nzxt spotifyd[690]: Using software volume controller.
Apr 16 19:30:27 nzxt spotifyd[690]: no usable credentials found, enabling discovery
Here's my .xinitrc:
#!/bin/sh
# Fix screen tearing
# nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
xrdb ~/.Xresources
picom &
xscreensaver &
while true; do
volumeicon
done &
spotifyd
eval $(feh --bg-fill /home/chris/Desktop/background.png)
# Fix date time
# ntpd &
while true; do
xsetroot -name "$( date +"%r %A %F")"
sleep 1s
done &
# exec /home/chris/Downloads/dwm-6.4/dwm
exec dwm
Offline
You're lacking the if statements that would source and properly setup your dbus user session.
Add
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
after the xrdb call.
Offline
There's a bunch of links in my signature, the last of them being to http://wiki.archlinux.org/title/Xinit#xinitrc
Online
Thanks V1del! That fixed the issue.
Offline