Closed mjlbach closed 4 years ago
I don't know if the menuerror in pyxdg is a red herring, but related: https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/18. Of note, I did manage to get #87985 running once, but I have not since been able to get it running again.
This can be reproduced by running in a nix-shell
from xdg.Menu import parse
parse()
So this is a pyxdg bug independent of Xpra.
Reduced further to
from xdg.Menu import MenuEntry
directory, d = 'kf5-unknown.directory', '/run/current-system/sw/share/desktop-directories'
menuentry = MenuEntry(directory, d)
menuentry.Type # AttributeError
Will get in on it on gitlab.freedesktop.org
@lourkeur Related issue mentioned on the xpra bugtracker
Managed to get it running on KDE randomly... Wondering if it has something to do with startup, here's the journalctl when I can vs can't use xpra without the xdg error.
journalctl when xpra won't launch.log
Client log
❯ DISPLAY=:0 xpra attach :100
2020-05-21 18:48:20,344 Xpra GTK3 X11 client version 4.0.1-r26380 64-bit
2020-05-21 18:48:20,359 running on Linux
2020-05-21 18:48:20,360 window manager is 'KWin'
2020-05-21 18:48:20,709 GStreamer version 1.16.2 for Python 3.7.7 64-bit
2020-05-21 18:48:20,732 Warning: failed to load the GTK3 notification class
2020-05-21 18:48:20,732 Namespace Notify not available
2020-05-21 18:48:20,858 No OpenGL_accelerate module loaded: No module named 'OpenGL_accelerate'
Gtk-Message: 18:48:21.049: Failed to load module "appmenu-gtk-module"
2020-05-21 18:48:21,082 OpenGL enabled with GeForce GTX 1070/PCIe/SSE2
2020-05-21 18:48:21,142 Error: cannot watch for video device changes without pyinotify:
2020-05-21 18:48:21,142 No module named 'pyinotify'
2020-05-21 18:48:21,171 keyboard settings: rules=evdev, model=pc104, layout=us
2020-05-21 18:48:21,184 desktop size is 2560x1440 with 1 screen:
2020-05-21 18:48:21,184 :0.0 (602x342 mm - DPI: 108x106) workarea: 2560x1331 at 0x24
2020-05-21 18:48:21,184 DEL DP-0 (598x336 mm - DPI: 108x108)
2020-05-21 18:48:21,387 enabled fast mmap transfers using 256MB shared memory area
2020-05-21 18:48:21,387 enabled remote logging
2020-05-21 18:48:21,388 Xpra GTK3 X11 server version 4.0.1-r26380 64-bit
2020-05-21 18:48:21,388 running on Linux
2020-05-21 18:48:21,394 Attached to socket:///run/user/1000/xpra/nixos-100
2020-05-21 18:48:21,394 (press Control-C to detach)
2020-05-21 18:48:21,577 sound output found 2 audio output devices:
2020-05-21 18:48:21,578 sound output * GP104 High Definition Audio Controller Digital Stereo (HDMI 2)
2020-05-21 18:48:21,578 sound output alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1
2020-05-21 18:48:21,578 sound output * Built-in Audio Analog Stereo
2020-05-21 18:48:21,578 sound output alsa_output.pci-0000_00_1f.3.analog-stereo
2020-05-21 18:48:21,578 sound output to select a specific one,
2020-05-21 18:48:21,578 sound output use the environment variable 'XPRA_PULSE_SINK_DEVICE_NAME'
2020-05-21 18:48:21,578 sound output using default pulseaudio device
2020-05-21 18:48:21,627 server does not support xi input devices
2020-05-21 18:48:21,628 server uses: xtest
2020-05-21 18:48:22,091 sound output using 'opus' audio codec
2020-05-21 18:48:22,388 Error: cannot access the list of printers
2020-05-21 18:48:22,388 failed to connect to server
Server log
2020-05-21 18:47:19,810 cannot use uinput for virtual devices:[0m
2020-05-21 18:47:19,810 [Errno 19] Failed to open the uinput device: No such device[0m
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.19.116 x86_64
Current Operating System: Linux nixos 5.4.41 #1-NixOS SMP Thu May 14 05:58:30 UTC 2020 x86_64
Kernel command line: BOOT_IMAGE=(hd3,gpt5)//kernels/klvgkx3kqs80qfi09h9q4d4r6r41bmfp-linux-5.4.41-bzImage systemConfig=/nix/store/rr45dzbsqmzdm4hhhp06w3j06cbvfmm5-nixos-system-nixos-20.03.1926.f45ccd9d20b init=/nix/store/rr45dzbsqmzdm4hhhp06w3j06cbvfmm5-nixos-system-nixos-20.03.1926.f45ccd9d20b/init loglevel=4
Build Date: 29 March 2020 08:21:49PM
Current version of pixman: 0.38.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/run/user/1000/xpra/Xorg.:100.log", Time: Thu May 21 18:47:19 2020
(++) Using config file: "/nix/store/6h3dizb1gak30n2n5rpy4wj35lzkmncv-xpra-4.0.1/etc/xpra/xorg.conf"
(==) Using system config directory "/nix/store/kkad13y3nkxw9grhw4jca6nsf38lhb2m-xorg-server-1.20.8/share/X11/xorg.conf.d"
[33m2020-05-21 18:47:21,898 Warning: failed to create socket directory '/run/xpra'[0m
[33m2020-05-21 18:47:21,898 [Errno 13] Permission denied: '/run/xpra'[0m
2020-05-21 18:47:21,899 created unix domain socket '/run/user/1000/xpra/nixos-100'[0m
2020-05-21 18:47:21,899 cannot create group socket '/run/xpra/nixos-100'[0m
2020-05-21 18:47:21,899 [Errno 2] No such file or directory[0m
2020-05-21 18:47:21,899 /run/xpra does not exist[0m
2020-05-21 18:47:21,960 pointer device emulation using XTest[0m
Gtk-Message: 18:47:21.983: Failed to load module "appmenu-gtk-module"
2020-05-21 18:47:22,002 serving html content from '/nix/store/6h3dizb1gak30n2n5rpy4wj35lzkmncv-xpra-4.0.1/share/xpra/www'[0m
[33m2020-05-21 18:47:22,038 Warning: failed to load the mdns publisher[0m
[33m2020-05-21 18:47:22,038 No module named 'avahi'[0m
[33m2020-05-21 18:47:22,039 either install the 'python-avahi' module[0m
[33m2020-05-21 18:47:22,039 or use the 'mdns=no' option[0m
2020-05-21 18:47:22,049 D-Bus notification forwarding is available[0m
2020-05-21 18:47:22,056 pulseaudio server started with pid 1918[0m
2020-05-21 18:47:22,057 private server socket path:[0m
2020-05-21 18:47:22,057 '/run/user/1000/xpra/pulse-100/pulse/native'[0m
E: [pulseaudio] ltdl-bind-now.c: Failed to open module module-x11-publish.so: module-x11-publish.so: cannot open shared object file: No such file or directory
E: [pulseaudio] module.c: Failed to open module "module-x11-publish".
2020-05-21 18:47:22,251 GStreamer version 1.16.2 for Python 3.7.7 64-bit[0m
(Xpra:1898): Gtk-CRITICAL **: 18:47:22.305: gtk_widget_realize: assertion 'widget->priv->anchored || GTK_IS_INVISIBLE (widget)' failed
[33m2020-05-21 18:47:22,312 Warning: webcam forwarding is disabled[0m
[33m2020-05-21 18:47:22,312 the virtual video directory '/sys/devices/virtual/video4linux' was not found[0m
[33m2020-05-21 18:47:22,312 make sure that the 'v4l2loopback' kernel module is installed and loaded[0m
2020-05-21 18:47:22,312 found 0 virtual video devices for webcam forwarding[0m
[31m2020-05-21 18:47:22,322 Error: lpinfo command failed to run[0m
[31m2020-05-21 18:47:22,322 [Errno 2] No such file or directory: '/usr/sbin/lpinfo': '/usr/sbin/lpinfo'[0m
[31m2020-05-21 18:47:22,322 command used: '/usr/sbin/lpinfo --make-and-model Generic PDF Printer -m'[0m
2020-05-21 18:47:22,322 printer forwarding enabled using postscript[0m
[33m2020-05-21 18:47:22,324 Warning: cannot watch for application menu changes without pyinotify:[0m
[33m2020-05-21 18:47:22,324 No module named 'pyinotify'[0m
2020-05-21 18:47:22,346 xpra is ready.[0m
2020-05-21 18:47:22,346 xpra GTK3 X11 version 4.0.1-r26380 64-bit[0m
2020-05-21 18:47:22,429 uid=1000 (mjlbach), gid=100 (users)[0m
2020-05-21 18:47:22,429 running with pid 1898 on Linux[0m
2020-05-21 18:47:22,430 connected to X11 display :100 with 24 bit colors[0m
[33m2020-05-21 18:47:22,813 Warning: icon is quite large (3408 KB):[0m
[33m2020-05-21 18:47:22,813 '/home/mjlbach/.nix-profile/share/icons/hicolor/scalable/apps/fr.handbrake.ghb.svg'[0m
2020-05-21 18:47:23,582 15.5GB of system memory[0m
2020-05-21 18:47:23,830 OpenGL is supported on display ':100'[0m
2020-05-21 18:48:21,215 New unix-domain connection received[0m
2020-05-21 18:48:21,215 on '/run/user/1000/xpra/nixos-100'[0m
2020-05-21 18:48:21,218 Handshake complete; enabling connection[0m
2020-05-21 18:48:21,231 mmap is enabled using 256MB area in /run/user/1000/xpra/xpra.q4t0lh2i.mmap[0m
2020-05-21 18:48:21,232 Python/GTK3 Linux tty client version 4.0.1-r26380 64-bit[0m
2020-05-21 18:48:21,232 OpenGL is enabled with GeForce GTX 1070/PCIe/SSE2[0m
2020-05-21 18:48:21,232 connected from 'nixos' as 'mjlbach'[0m
2020-05-21 18:48:21,287 setting key repeat rate from client: 600ms delay / 40ms interval[0m
2020-05-21 18:48:21,288 setting keymap: [0m
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported high keycode 372 for name <I372> ignored
> X11 cannot support keycodes above 255.
> This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
2020-05-21 18:48:21,300 setting keyboard layout to 'us'[0m
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported high keycode 372 for name <I372> ignored
> X11 cannot support keycodes above 255.
> This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
2020-05-21 18:48:21,346 client root window size is 2560x1440 with 1 display:[0m
2020-05-21 18:48:21,346 :0.0 (602x342 mm - DPI: 108x106) workarea: 2560x1331 at 0x24[0m
2020-05-21 18:48:21,347 DEL DP-0 (598x336 mm - DPI: 108x108)[0m
2020-05-21 18:48:21,370 server virtual display now set to 2560x1440[0m
2020-05-21 18:48:21,374 automatic picture encoding enabled, also available:[0m
2020-05-21 18:48:21,374 h264, vp9, vp8, png, png/P, png/L, webp, rgb24, rgb32, jpeg, h265, mpeg1, mpeg2[0m
2020-05-21 18:48:21,388 client 1 @01.044 Xpra GTK3 X11 server version 4.0.1-r26380 64-bit[0m
2020-05-21 18:48:21,389 client 1 @01.044 running on Linux[0m
2020-05-21 18:48:21,389 DPI set to 108 x 107[0m
2020-05-21 18:48:21,396 client 1 @01.049 Attached to socket:///run/user/1000/xpra/nixos-100[0m
2020-05-21 18:48:21,397 client 1 @01.049 (press Control-C to detach)[0m
2020-05-21 18:48:21,628 client 1 @01.283 server does not support xi input devices[0m
2020-05-21 18:48:21,628 client 1 @01.283 server uses: xtest[0m
2020-05-21 18:48:21,655 using pulseaudio device:[0m
2020-05-21 18:48:21,656 'Monitor of Xpra Speaker'[0m
2020-05-21 18:48:22,170 New unix-domain connection received[0m
2020-05-21 18:48:22,171 on '/run/user/1000/xpra/nixos-100'[0m
2020-05-21 18:48:22,347 sound source using 'opus' audio codec
[31m2020-05-21 18:48:22,389 client 1 @02.044 Error: cannot access the list of printers[0m
[31m2020-05-21 18:48:22,389 client 1 @02.044 failed to connect to server[0m
Ok, even stranger, if I start or run xpra over ssh to my computer, the problem goes away (although intermittently the menu does not appear on applications). Totaam has added a workaround in the soon to be released xpra 4.0.2 http://xpra.org/trac/changeset/26442/xpra
Ok, it's definitely something in the XDG variables. If I run this shell script, xpra starts even on KDE. Since we're not having this problem on gnome, it must be some difficulty with the XDG variables set by KDE that pyxdg is having difficulty with.
Variables which work:
export XDG_CONFIG_DIRS=/etc/xdg:/home/mjlbach/.local/share/flatpak/exports/etc/xdg:/var/lib/flatpak/exports/etc/xdg:/home/mjlbach/.nix-profile/etc/xdg:/etc/profiles/per-user/mjlbach/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg
export XDG_DATA_DIRS=/home/mjlbach/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/mjlbach/.nix-profile/share:/etc/profiles/per-user/mjlbach/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
export XDG_DESKTOP_PORTAL_DIR=/nix/store/aa89japv1y3fjbmali18a72klfhw7vis-xdg-portals/share/xdg-desktop-portal/portals
export XDG_RUNTIME_DIR=/run/user/1000
export XDG_SESSION_CLASS=user
export XDG_SESSION_ID=6
export XDG_SESSION_TYPE=tty
Variables which don't work (warning long)
export XDG_CONFIG_DIRS=/nix/store/1gdxyxc3j4hh6k2m6bndhj4r3ryklb8g-kdelibs4support-5.66.0/etc/xdg:/nix/store/aq5389wkamg33g13bn03g2i3hp57n9i5-kio-5.66.0/etc/xdg:/nix/store/q877p8iyf6kv1f025vbkh082zrjbq8aw-kservice-5.66.0-bin/etc/xdg:/nix/store/0nkwhcwx4m8mg74cy09977rbw0h6vn8k-kxmlgui-5.66.0-bin/etc/xdg:/nix/store/2gc5fsahhfxvffdrfz2vmr4g2askadia-plasma-workspace-5.17.5/etc/xdg:/nix/store/1gdxyxc3j4hh6k2m6bndhj4r3ryklb8g-kdelibs4support-5.66.0/etc/xdg:/nix/store/wy0rps8ghb5bzbdh6b9j3n786k5lf4jq-baloo-5.66.0-bin/etc/xdg:/nix/store/q877p8iyf6kv1f025vbkh082zrjbq8aw-kservice-5.66.0-bin/etc/xdg:/nix/store/aq5389wkamg33g13bn03g2i3hp57n9i5-kio-5.66.0/etc/xdg:/nix/store/0nkwhcwx4m8mg74cy09977rbw0h6vn8k-kxmlgui-5.66.0-bin/etc/xdg:/nix/store/2gc5fsahhfxvffdrfz2vmr4g2askadia-plasma-workspace-5.17.5/etc/xdg:/nix/store/1gdxyxc3j4hh6k2m6bndhj4r3ryklb8g-kdelibs4support-5.66.0/etc/xdg:/nix/store/wy0rps8ghb5bzbdh6b9j3n786k5lf4jq-baloo-5.66.0-bin/etc/xdg:/nix/store/q877p8iyf6kv1f025vbkh082zrjbq8aw-kservice-5.66.0-bin/etc/xdg:/nix/store/aq5389wkamg33g13bn03g2i3hp57n9i5-kio-5.66.0/etc/xdg:/nix/store/0nkwhcwx4m8mg74cy09977rbw0h6vn8k-kxmlgui-5.66.0-bin/etc/xdg:/etc/xdg:/home/mjlbach/.local/share/flatpak/exports/etc/xdg:/var/lib/flatpak/exports/etc/xdg:/home/mjlbach/.nix-profile/etc/xdg:/etc/profiles/per-user/mjlbach/etc/xdg:/nix/var/nix/profiles/default/etc/xdg:/run/current-system/sw/etc/xdg
export XDG_DATA_DIRS=/nix/store/fhr03g6kb8sh9apa251q9mxfpasn2n7r-konsole-19.12.3/share:/nix/store/w9srswn6428xvsi76f36451dkz4hxxk6-knewstuff-5.66.0/share:/nix/store/fckcbz8ylq3lriam69inbpfdbpmza812-kirigami2-5.66.0/share:/nix/store/midw44718nb7smysv4fgvsqggv8mhiyd-kpty-5.66.0/share:/nix/store/0h7rmfg8d673a99lmkp1zpc7jrdmv1n5-knotifyconfig-5.66.0/share:/nix/store/1gdxyxc3j4hh6k2m6bndhj4r3ryklb8g-kdelibs4support-5.66.0/share:/nix/store/23cps7yi4vaw2sa69dc9lk1zcxqdkr10-kded-5.66.0/share:/nix/store/wp4pisrn0mylgimkk2kba8p6ypha70rr-kunitconversion-5.66.0/share:/nix/store/nh0r13z7bc0y0kh78qdnrwj9hhwa1h0f-kparts-5.66.0/share:/nix/store/h7qcsxvwd397nnjp1v8mws2v1birl647-kparts-5.66.0-bin/share:/nix/store/p6zkla42m60q9p8fg9ry0lzqc57n574i-kinit-5.66.0/share:/nix/store/20pjwnpi253jbnm43dx8hikjjv60dsxi-kemoticons-5.66.0-bin/share:/nix/store/zdlnlqfq0nl1h1h01h1842mln1lb0r79-kdesignerplugin-5.66.0/share:/nix/store/zkm4d5aq1s6vij0nkd7xyh4pjjyzvf6g-kwallet-5.66.0/share:/nix/store/0in6fwfkl4nllkrx9dmc9npwzazmfkvy-kwallet-5.66.0-bin/share:/nix/store/hgb1kzs1781hdx1ixcjhhqbbh3ijqjr8-knotifications-5.66.0/share:/nix/store/jk14l2v6zyhphgm54yiiyqc88kbcjfic-knotifications-5.66.0-bin/share:/nix/store/f9a08swzf1sxwbv8mgshivmldxyvkdcd-solid-5.66.0/share:/nix/store/vifif1mvsnxaypyrvwaqw6xpx82fq83v-kjobwidgets-5.66.0/share:/nix/store/qbj2xxwaqjk3hynwvbgjmhvd9x2pds0a-kjobwidgets-5.66.0-bin/share:/nix/store/aq5389wkamg33g13bn03g2i3hp57n9i5-kio-5.66.0/share:/nix/store/s9qnarmw3jjz9783qz0ci8cai6fprqyl-phonon-4.11.1/share:/nix/store/jhgpkjn1dzp41r15nnaip8wxa9fjpw14-kbookmarks-5.66.0/share:/nix/store/83lka81ya62wbp7q7p1g2xhrdpar05gk-kxmlgui-5.66.0/share:/nix/store/9rgiic4lqkxrmp209kxkq0q060aajl3a-ktextwidgets-5.66.0/share:/nix/store/nq8ykjgrx52abh2z85npxw1q6phrkj3w-sonnet-5.66.0/share:/nix/store/658pz7rsfkszyzr097xcndbznajbd8kr-kglobalaccel-5.66.0/share:/nix/store/i2j08db6yprjgkd4v84mhl5ablfwnq72-kservice-5.66.0/share:/nix/store/q877p8iyf6kv1f025vbkh082zrjbq8aw-kservice-5.66.0-bin/share:/nix/store/hkj2idsgwxgvhmk9sb4s5iihywy3ap0z-kdbusaddons-5.66.0/share:/nix/store/w3xpl0fv3qwjfpqhbr8ajfndp8hkhx1d-kiconthemes-5.66.0/share:/nix/store/7sdx5qdfa2j04sqd09d2a1xrsginijn0-kcompletion-5.66.0/share:/nix/store/hvjd56rjy6s47w5rm4169l3p6zgcnw66-kglobalaccel-5.66.0-bin/share:/nix/store/026wi68sm9ysc8pnvl2pci91mbspf2sy-kwindowsystem-5.66.0/share:/nix/store/n72kgfdjq7d9av8qhadxibik43j6dl5r-kitemviews-5.66.0/share:/nix/store/1ska4z9qfsg1fb97di2w0pbbghkg3qih-kconfigwidgets-5.66.0/share:/nix/store/8nj1ivj3zpcr234fj07bv3dvc4ia9gx6-kconfig-5.66.0/share:/nix/store/fxv8sfw0aw0w1cl0k5cvr043m8ag08qc-kcodecs-5.66.0/share:/nix/store/m6b5anf7frnhya6l1xmks4a33bqqdc5m-kauth-5.66.0/share:/nix/store/wnxamdpl48svswy1gjbmg8vjrszkwp64-kcoreaddons-5.66.0/share:/nix/store/swmhdl8p366rakxwhwrsm1s35naka4db-kcoreaddons-5.66.0-bin/share:/nix/store/g0r2ir86sn1y9gkdnjbbfps577n39zvg-kwidgetsaddons-5.66.0/share:/nix/store/2j9wq0nn3i014p3clqnf36j5r4yr0187-flex-2.6.4/share:/nix/store/03xn4ydhcmgv3228mi9x2yi7lksf43q3-bison-3.5.1/share:/nix/store/fjdhmxvw0q5484a9dz7zpfnqkrynybhp-kdoctools-5.66.0/share:/nix/store/59x7bx6x2z59d8r3jw2bqigp8bbl4724-ki18n-5.66.0/share:/nix/store/8whc4mvh8mwzzja8zynhc770p5zrci6i-systemd-243.7/share:/nix/store/v4p5df2iif9q3jf5l3llxwjag1symw7c-systemd-243.7-lib/share:/nix/store/8w5w2bw5m88iwrsc5lcwqmfw8w80ywrh-glib-2.62.4/share:/nix/store/a44gapzli6klqbcpc7knxsmac5a5a87g-gettext-0.20.1/share:/nix/store/aaayai73jn01sayx415y2ka140mslqpb-dbus-1.12.16/share:/nix/store/s7smd0wk3q3y8ns9wmd2r9612a9dbymf-xz-5.2.4/share:/nix/store/2gc5fsahhfxvffdrfz2vmr4g2askadia-plasma-workspace-5.17.5/share:/nix/store/z6x3mm3h1kl2ifkl1isn06y8f3fdnw76-kholidays-5.66.0/share:/nix/store/h9zjvjvm4xv5clp1lilh0qa8vaz3pk3i-network-manager-1.22.10/share:/nix/store/mjym5az45nkjh48bxmsjg0hpvpignbqy-gnutls-3.6.13/share:/nix/store/x2hshfpa00zbhigs0rgbxbfxz2qli78k-libqalculate-3.7.0/share:/nix/store/rzvn4qb9xyi2xq7hdgi504hxa5dxprvz-libksysguard-5.17.5/share:/nix/store/1w8ansjyhxfzd969f1bvxafhjs1wy4ji-libksysguard-5.17.5-bin/share:/nix/store/ivg0k1axdi14rx9wjxsprhzp23dw12n6-libkscreen-5.17.5/share:/nix/store/9kv21l22gvp2jy5s1077mmp809vn6hr3-kxmlrpcclient-5.66.0/share:/nix/store/s27x0mgazkjsix07vmn8aq070wk3znws-kwin-5.17.5/share:/nix/store/bbszgw9xacjhdlw8nk50wdvr7hrln792-kwin-5.17.5-bin/share:/nix/store/h5b7rlk5gx2ahiadfh2rry6mp9hamxcb-breeze-qt5-5.17.5/share:/nix/store/ppgshkk9hdjlpk5f21sdpizkiq0rly1d-kdecoration-5.17.5/share:/nix/store/0q9gj5vsv1r9ljsb843d9y89g1gl42yk-breeze-qt5-5.17.5-bin/share:/nix/store/9h7l9rclfsydn5i38v3ny1lhii0ibl4d-frameworkintegration-5.66.0-bin/share:/nix/store/w5vv7qf4j2dsjhj8ypzpblr0k23baza3-ktexteditor-5.66.0/share:/nix/store/ldvxi5wqij6wvvhwanab3zm8bbf60yzs-ktexteditor-5.66.0-bin/share:/nix/store/r85x0byyzx5a70izqbbhb7n176drjvi6-syntax-highlighting-5.66.0/share:/nix/store/bpr6f1d5kkd3v7ajlpdy05drnwvny9jy-kscreenlocker-5.17.5/share:/nix/store/mazq59yqz233lf83jzd5iq1z02mixbxw-krunner-5.66.0-bin/share:/nix/store/0fiabxz2x0jcr8vy9ap1prcbapgjv9x9-plasma-framework-5.66.0/share:/nix/store/fcviaf9xgddrr4c2w74rbfd2msli7sxp-plasma-framework-5.66.0-bin/share:/nix/store/r0fa3y44h23wdb89dqdr9d2rbpff1y9g-kpeople-5.66.0/share:/nix/store/2mdhqx3fsfwmgnp84kdfwdl1svqgd785-kpeople-5.66.0-bin/share:/nix/store/0h7rmfg8d673a99lmkp1zpc7jrdmv1n5-knotifyconfig-5.66.0/share:/nix/store/w9srswn6428xvsi76f36451dkz4hxxk6-knewstuff-5.66.0/share:/nix/store/fckcbz8ylq3lriam69inbpfdbpmza812-kirigami2-5.66.0/share:/nix/store/mhwllrkn7s0r8005aidk3x3cnl238asr-kjsembed-5.66.0/share:/nix/store/6ghg9mk130x8anialy8z5fg7v6bhz8ls-kdesu-5.66.0/share:/nix/store/midw44718nb7smysv4fgvsqggv8mhiyd-kpty-5.66.0/share:/nix/store/1gdxyxc3j4hh6k2m6bndhj4r3ryklb8g-kdelibs4support-5.66.0/share:/nix/store/23cps7yi4vaw2sa69dc9lk1zcxqdkr10-kded-5.66.0/share:/nix/store/wp4pisrn0mylgimkk2kba8p6ypha70rr-kunitconversion-5.66.0/share:/nix/store/nh0r13z7bc0y0kh78qdnrwj9hhwa1h0f-kparts-5.66.0/share:/nix/store/h7qcsxvwd397nnjp1v8mws2v1birl647-kparts-5.66.0-bin/share:/nix/store/p6zkla42m60q9p8fg9ry0lzqc57n574i-kinit-5.66.0/share:/nix/store/20pjwnpi253jbnm43dx8hikjjv60dsxi-kemoticons-5.66.0-bin/share:/nix/store/zdlnlqfq0nl1h1h01h1842mln1lb0r79-kdesignerplugin-5.66.0/share:/nix/store/b58p4h8i7jplpqfwikah3siwqajfjyc9-kcmutils-5.66.0/share:/nix/store/rfbmzz12gvnq6xddygrhd9j398yizzbj-kcmutils-5.66.0-bin/share:/nix/store/9vmqmpgsiw1b2iy9qbfbhvzph5fhn01q-kdeclarative-5.66.0/share:/nix/store/999h5327c5nnh2wyqnw72fgd26hna13d-kpackage-5.66.0/share:/nix/store/zh9b3jm5jv14qgllhpkwv3ijp492sjpd-kpackage-5.66.0-bin/share:/nix/store/fqnixj54m1pa6lykirn27djd3il180a3-baloo-5.66.0/share:/nix/store/wy0rps8ghb5bzbdh6b9j3n786k5lf4jq-baloo-5.66.0-bin/share:/nix/store/zkm4d5aq1s6vij0nkd7xyh4pjjyzvf6g-kwallet-5.66.0/share:/nix/store/0in6fwfkl4nllkrx9dmc9npwzazmfkvy-kwallet-5.66.0-bin/share:/nix/store/hgb1kzs1781hdx1ixcjhhqbbh3ijqjr8-knotifications-5.66.0/share:/nix/store/jk14l2v6zyhphgm54yiiyqc88kbcjfic-knotifications-5.66.0-bin/share:/nix/store/f9a08swzf1sxwbv8mgshivmldxyvkdcd-solid-5.66.0/share:/nix/store/vifif1mvsnxaypyrvwaqw6xpx82fq83v-kjobwidgets-5.66.0/share:/nix/store/qbj2xxwaqjk3hynwvbgjmhvd9x2pds0a-kjobwidgets-5.66.0-bin/share:/nix/store/jhgpkjn1dzp41r15nnaip8wxa9fjpw14-kbookmarks-5.66.0/share:/nix/store/83lka81ya62wbp7q7p1g2xhrdpar05gk-kxmlgui-5.66.0/share:/nix/store/9rgiic4lqkxrmp209kxkq0q060aajl3a-ktextwidgets-5.66.0/share:/nix/store/nq8ykjgrx52abh2z85npxw1q6phrkj3w-sonnet-5.66.0/share:/nix/store/658pz7rsfkszyzr097xcndbznajbd8kr-kglobalaccel-5.66.0/share:/nix/store/i2j08db6yprjgkd4v84mhl5ablfwnq72-kservice-5.66.0/share:/nix/store/q877p8iyf6kv1f025vbkh082zrjbq8aw-kservice-5.66.0-bin/share:/nix/store/w3xpl0fv3qwjfpqhbr8ajfndp8hkhx1d-kiconthemes-5.66.0/share:/nix/store/hkj2idsgwxgvhmk9sb4s5iihywy3ap0z-kdbusaddons-5.66.0/share:/nix/store/aq5389wkamg33g13bn03g2i3hp57n9i5-kio-5.66.0/share:/nix/store/s9qnarmw3jjz9783qz0ci8cai6fprqyl-phonon-4.11.1/share:/nix/store/7sdx5qdfa2j04sqd09d2a1xrsginijn0-kcompletion-5.66.0/share:/nix/store/hvjd56rjy6s47w5rm4169l3p6zgcnw66-kglobalaccel-5.66.0-bin/share:/nix/store/n72kgfdjq7d9av8qhadxibik43j6dl5r-kitemviews-5.66.0/share:/nix/store/1ska4z9qfsg1fb97di2w0pbbghkg3qih-kconfigwidgets-5.66.0/share:/nix/store/8nj1ivj3zpcr234fj07bv3dvc4ia9gx6-kconfig-5.66.0/share:/nix/store/fxv8sfw0aw0w1cl0k5cvr043m8ag08qc-kcodecs-5.66.0/share:/nix/store/g0r2ir86sn1y9gkdnjbbfps577n39zvg-kwidgetsaddons-5.66.0/share:/nix/store/026wi68sm9ysc8pnvl2pci91mbspf2sy-kwindowsystem-5.66.0/share:/nix/store/m6b5anf7frnhya6l1xmks4a33bqqdc5m-kauth-5.66.0/share:/nix/store/mahk1a5pn03303y3df69cl9ifnywnhms-kfilemetadata-5.66.0/share:/nix/store/wnxamdpl48svswy1gjbmg8vjrszkwp64-kcoreaddons-5.66.0/share:/nix/store/swmhdl8p366rakxwhwrsm1s35naka4db-kcoreaddons-5.66.0-bin/share:/nix/store/8jz6f4kp5gq192q32w8l8xlgp9xh1mxx-linux-pam-1.3.1/share:/nix/store/h07hmd7h8cilrbvfj6iz3jm30rjsggga-iso-codes-4.4/share:/nix/store/2j9wq0nn3i014p3clqnf36j5r4yr0187-flex-2.6.4/share:/nix/store/03xn4ydhcmgv3228mi9x2yi7lksf43q3-bison-3.5.1/share:/nix/store/fjdhmxvw0q5484a9dz7zpfnqkrynybhp-kdoctools-5.66.0/share:/nix/store/59x7bx6x2z59d8r3jw2bqigp8bbl4724-ki18n-5.66.0/share:/nix/store/8whc4mvh8mwzzja8zynhc770p5zrci6i-systemd-243.7/share:/nix/store/v4p5df2iif9q3jf5l3llxwjag1symw7c-systemd-243.7-lib/share:/nix/store/8w5w2bw5m88iwrsc5lcwqmfw8w80ywrh-glib-2.62.4/share:/nix/store/a44gapzli6klqbcpc7knxsmac5a5a87g-gettext-0.20.1/share:/nix/store/aaayai73jn01sayx415y2ka140mslqpb-dbus-1.12.16/share:/nix/store/s7smd0wk3q3y8ns9wmd2r9612a9dbymf-xz-5.2.4/share:/nix/store/2gc5fsahhfxvffdrfz2vmr4g2askadia-plasma-workspace-5.17.5/share:/nix/store/z6x3mm3h1kl2ifkl1isn06y8f3fdnw76-kholidays-5.66.0/share:/nix/store/h9zjvjvm4xv5clp1lilh0qa8vaz3pk3i-network-manager-1.22.10/share:/nix/store/mjym5az45nkjh48bxmsjg0hpvpignbqy-gnutls-3.6.13/share:/nix/store/x2hshfpa00zbhigs0rgbxbfxz2qli78k-libqalculate-3.7.0/share:/nix/store/rzvn4qb9xyi2xq7hdgi504hxa5dxprvz-libksysguard-5.17.5/share:/nix/store/1w8ansjyhxfzd969f1bvxafhjs1wy4ji-libksysguard-5.17.5-bin/share:/nix/store/ivg0k1axdi14rx9wjxsprhzp23dw12n6-libkscreen-5.
17.5/share:/nix/store/9kv21l22gvp2jy5s1077mmp809vn6hr3-kxmlrpcclient-5.66.0/share:/nix/store/s27x0mgazkjsix07vmn8aq070wk3znws-kwin-5.17.5/share:/nix/store/bbszgw9xacjhdlw8nk50wdvr7hrln792-kwin-5.17.5-bin/share:/nix/store/h5b7rlk5gx2ahiadfh2rry6mp9hamxcb-breeze-qt5-5.17.5/share:/nix/store/ppgshkk9hdjlpk5f21sdpizkiq0rly1d-kdecoration-5.17.5/share:/nix/store/0q9gj5vsv1r9ljsb843d9y89g1gl42yk-breeze-qt5-5.17.5-bin/share:/nix/store/9h7l9rclfsydn5i38v3ny1lhii0ibl4d-frameworkintegration-5.66.0-bin/share:/nix/store/w5vv7qf4j2dsjhj8ypzpblr0k23baza3-ktexteditor-5.66.0/share:/nix/store/ldvxi5wqij6wvvhwanab3zm8bbf60yzs-ktexteditor-5.66.0-bin/share:/nix/store/r85x0byyzx5a70izqbbhb7n176drjvi6-syntax-highlighting-5.66.0/share:/nix/store/bpr6f1d5kkd3v7ajlpdy05drnwvny9jy-kscreenlocker-5.17.5/share:/nix/store/mazq59yqz233lf83jzd5iq1z02mixbxw-krunner-5.66.0-bin/share:/nix/store/0fiabxz2x0jcr8vy9ap1prcbapgjv9x9-plasma-framework-5.66.0/share:/nix/store/fcviaf9xgddrr4c2w74rbfd2msli7sxp-plasma-framework-5.66.0-bin/share:/nix/store/r0fa3y44h23wdb89dqdr9d2rbpff1y9g-kpeople-5.66.0/share:/nix/store/2mdhqx3fsfwmgnp84kdfwdl1svqgd785-kpeople-5.66.0-bin/share:/nix/store/0h7rmfg8d673a99lmkp1zpc7jrdmv1n5-knotifyconfig-5.66.0/share:/nix/store/w9srswn6428xvsi76f36451dkz4hxxk6-knewstuff-5.66.0/share:/nix/store/fckcbz8ylq3lriam69inbpfdbpmza812-kirigami2-5.66.0/share:/nix/store/mhwllrkn7s0r8005aidk3x3cnl238asr-kjsembed-5.66.0/share:/nix/store/6ghg9mk130x8anialy8z5fg7v6bhz8ls-kdesu-5.66.0/share:/nix/store/midw44718nb7smysv4fgvsqggv8mhiyd-kpty-5.66.0/share:/nix/store/1gdxyxc3j4hh6k2m6bndhj4r3ryklb8g-kdelibs4support-5.66.0/share:/nix/store/23cps7yi4vaw2sa69dc9lk1zcxqdkr10-kded-5.66.0/share:/nix/store/wp4pisrn0mylgimkk2kba8p6ypha70rr-kunitconversion-5.66.0/share:/nix/store/nh0r13z7bc0y0kh78qdnrwj9hhwa1h0f-kparts-5.66.0/share:/nix/store/h7qcsxvwd397nnjp1v8mws2v1birl647-kparts-5.66.0-bin/share:/nix/store/p6zkla42m60q9p8fg9ry0lzqc57n574i-kinit-5.66.0/share:/nix/store/20pjwnpi253jbnm43dx8hikjjv60dsxi-kemoticons-5.66.0-bin/share:/nix/store/zdlnlqfq0nl1h1h01h1842mln1lb0r79-kdesignerplugin-5.66.0/share:/nix/store/b58p4h8i7jplpqfwikah3siwqajfjyc9-kcmutils-5.66.0/share:/nix/store/rfbmzz12gvnq6xddygrhd9j398yizzbj-kcmutils-5.66.0-bin/share:/nix/store/9vmqmpgsiw1b2iy9qbfbhvzph5fhn01q-kdeclarative-5.66.0/share:/nix/store/999h5327c5nnh2wyqnw72fgd26hna13d-kpackage-5.66.0/share:/nix/store/zh9b3jm5jv14qgllhpkwv3ijp492sjpd-kpackage-5.66.0-bin/share:/nix/store/fqnixj54m1pa6lykirn27djd3il180a3-baloo-5.66.0/share:/nix/store/wy0rps8ghb5bzbdh6b9j3n786k5lf4jq-baloo-5.66.0-bin/share:/nix/store/zkm4d5aq1s6vij0nkd7xyh4pjjyzvf6g-kwallet-5.66.0/share:/nix/store/0in6fwfkl4nllkrx9dmc9npwzazmfkvy-kwallet-5.66.0-bin/share:/nix/store/hgb1kzs1781hdx1ixcjhhqbbh3ijqjr8-knotifications-5.66.0/share:/nix/store/jk14l2v6zyhphgm54yiiyqc88kbcjfic-knotifications-5.66.0-bin/share:/nix/store/f9a08swzf1sxwbv8mgshivmldxyvkdcd-solid-5.66.0/share:/nix/store/vifif1mvsnxaypyrvwaqw6xpx82fq83v-kjobwidgets-5.66.0/share:/nix/store/qbj2xxwaqjk3hynwvbgjmhvd9x2pds0a-kjobwidgets-5.66.0-bin/share:/nix/store/jhgpkjn1dzp41r15nnaip8wxa9fjpw14-kbookmarks-5.66.0/share:/nix/store/83lka81ya62wbp7q7p1g2xhrdpar05gk-kxmlgui-5.66.0/share:/nix/store/9rgiic4lqkxrmp209kxkq0q060aajl3a-ktextwidgets-5.66.0/share:/nix/store/nq8ykjgrx52abh2z85npxw1q6phrkj3w-sonnet-5.66.0/share:/nix/store/658pz7rsfkszyzr097xcndbznajbd8kr-kglobalaccel-5.66.0/share:/nix/store/i2j08db6yprjgkd4v84mhl5ablfwnq72-kservice-5.66.0/share:/nix/store/q877p8iyf6kv1f025vbkh082zrjbq8aw-kservice-5.66.0-bin/share:/nix/store/w3xpl0fv3qwjfpqhbr8ajfndp8hkhx1d-kiconthemes-5.66.0/share:/nix/store/hkj2idsgwxgvhmk9sb4s5iihywy3ap0z-kdbusaddons-5.66.0/share:/nix/store/aq5389wkamg33g13bn03g2i3hp57n9i5-kio-5.66.0/share:/nix/store/s9qnarmw3jjz9783qz0ci8cai6fprqyl-phonon-4.11.1/share:/nix/store/7sdx5qdfa2j04sqd09d2a1xrsginijn0-kcompletion-5.66.0/share:/nix/store/hvjd56rjy6s47w5rm4169l3p6zgcnw66-kglobalaccel-5.66.0-bin/share:/nix/store/n72kgfdjq7d9av8qhadxibik43j6dl5r-kitemviews-5.66.0/share:/nix/store/1ska4z9qfsg1fb97di2w0pbbghkg3qih-kconfigwidgets-5.66.0/share:/nix/store/8nj1ivj3zpcr234fj07bv3dvc4ia9gx6-kconfig-5.66.0/share:/nix/store/fxv8sfw0aw0w1cl0k5cvr043m8ag08qc-kcodecs-5.66.0/share:/nix/store/g0r2ir86sn1y9gkdnjbbfps577n39zvg-kwidgetsaddons-5.66.0/share:/nix/store/026wi68sm9ysc8pnvl2pci91mbspf2sy-kwindowsystem-5.66.0/share:/nix/store/m6b5anf7frnhya6l1xmks4a33bqqdc5m-kauth-5.66.0/share:/nix/store/mahk1a5pn03303y3df69cl9ifnywnhms-kfilemetadata-5.66.0/share:/nix/store/wnxamdpl48svswy1gjbmg8vjrszkwp64-kcoreaddons-5.66.0/share:/nix/store/swmhdl8p366rakxwhwrsm1s35naka4db-kcoreaddons-5.66.0-bin/share:/nix/store/8jz6f4kp5gq192q32w8l8xlgp9xh1mxx-linux-pam-1.3.1/share:/nix/store/h07hmd7h8cilrbvfj6iz3jm30rjsggga-iso-codes-4.4/share:/nix/store/2j9wq0nn3i014p3clqnf36j5r4yr0187-flex-2.6.4/share:/nix/store/03xn4ydhcmgv3228mi9x2yi7lksf43q3-bison-3.5.1/share:/nix/store/fjdhmxvw0q5484a9dz7zpfnqkrynybhp-kdoctools-5.66.0/share:/nix/store/59x7bx6x2z59d8r3jw2bqigp8bbl4724-ki18n-5.66.0/share:/nix/store/8whc4mvh8mwzzja8zynhc770p5zrci6i-systemd-243.7/share:/nix/store/v4p5df2iif9q3jf5l3llxwjag1symw7c-systemd-243.7-lib/share:/nix/store/8w5w2bw5m88iwrsc5lcwqmfw8w80ywrh-glib-2.62.4/share:/nix/store/a44gapzli6klqbcpc7knxsmac5a5a87g-gettext-0.20.1/share:/nix/store/aaayai73jn01sayx415y2ka140mslqpb-dbus-1.12.16/share:/nix/store/s7smd0wk3q3y8ns9wmd2r9612a9dbymf-xz-5.2.4/share:/home/mjlbach/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/mjlbach/.nix-profile/share:/etc/profiles/per-user/mjlbach/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
export XDG_DESKTOP_PORTAL_DIR=/nix/store/aa89japv1y3fjbmali18a72klfhw7vis-xdg-portals/share/xdg-desktop-portal/portals
export XDG_RUNTIME_DIR=/run/user/1000
export XDG_SESSION_CLASS=user
export XDG_SESSION_ID=2
export XDG_SESSION_TYPE=x11
Ok, even stranger, if I start or run xpra over ssh to my computer, the problem goes away (although intermittently the menu does not appear on applications). Totaam has added a workaround in the soon to be released xpra 4.0.2 http://xpra.org/trac/changeset/26442/xpra
We can even (fetchpatch https://xpra.org/trac/changeset/26442/xpra?format=diff&new=26442)
, that's nice.
I bumped xpra to 4.0.1 in a PR, so that should apply cleanly (I can do that in a bit).
I'm still concerned about what's going on with XDG. It seems all that is necessary to "fix" the problem is to override the XDG_DATA_DIRS
export XDG_DATA_DIRS=/home/mjlbach/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/mjlbach/.nix-profile/share:/etc/profiles/per-user/mjlbach/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
I'm contemplating just bisecting the envvars to see what is causing the issue... It would be great if it's an upstream problem, but I wonder if something about nix is exposing that.
I bumped xpra to 4.0.1 in a PR, so that should apply cleanly (I can do that in a bit).
I'm still concerned about what's going on with XDG. It seems all that is necessary to "fix" the problem is to override the XDG_DATA_DIRS
export XDG_DATA_DIRS=/home/mjlbach/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/home/mjlbach/.nix-profile/share:/etc/profiles/per-user/mjlbach/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
I'm contemplating just bisecting the envvars to see what is causing the issue... It would be great if it's an upstream problem, but I wonder if something about nix is exposing that.
I've been doing that, but it isn't quite working yet
diff --git a/pkgs/tools/X11/xpra/default.nix b/pkgs/tools/X11/xpra/default.nix
index 0d989fccb02..1aa5bd02937 100644
--- a/pkgs/tools/X11/xpra/default.nix
+++ b/pkgs/tools/X11/xpra/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchurl, callPackage, substituteAll, python3, pkgconfig, writeText
+{ stdenv, lib, fetchurl, fetchpatch, callPackage, substituteAll, python3, pkgconfig, writeText
, xorg, gtk3, glib, pango, cairo, gdk-pixbuf, atk
, wrapGAppsHook, xorgserver, getopt, xauth, utillinux, which
, ffmpeg_4, x264, libvpx, libwebp, x265
@@ -10,6 +10,12 @@ with lib;
let
inherit (python3.pkgs) cython buildPythonApplication;
+ r26442 = fetchpatch {
+ url = "https://xpra.org/trac/changeset/26442/xpra?format=diff&new=26442";
+ name = "r26442.patch";
+ stripLen = 3;
+ sha256 = "00r7aplskj5rv7s8lyrrcphcsphbg9bzbkbjbk2xs2kxgbc7k3ch";
+ };
xf86videodummy = xorg.xf86videodummy.overrideDerivation (p: {
patches = [
@@ -43,6 +49,7 @@ in buildPythonApplication rec {
inherit (xorg) xkeyboardconfig;
})
./fix-41106.patch
+ r26442
];
postPatch = ''
When I tried that ^ I get
The text leading up to this was:
--------------------------
|--- xpra/platform/xposix/xdg_helper.py (revision 26441)
|+++ xpra/platform/xposix/xdg_helper.py (revision 26442)
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
builder for '/nix/store/401r8bbi98lxv3a1d4l647vg3fy0g5da-xpra-4.0.1.drv' failed with exit code 1
I don't remember much about trac SVN url magic haha
Ok, I updated the PR to include a patch (just dumped the file in for now). I also made this issue about pyxdg (managed to isolate which envvars cause the issue) https://github.com/NixOS/nixpkgs/issues/88593.
Closing, because technically fixed in master by #89570, although we should do the version bump to 4.0.2 anyways and the backport to 20.03
Describe the bug Xpra fails to attach with the latest xpra fixes applied.
Discussion moved from #87985
cc: @lourkeur
To Reproduce Steps to reproduce the behavior:
Server logs
Client logs
Expected behavior A clear and concise description of what you expected to happen.
Xpra behavior matches other DEs.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Notify maintainers
Metadata Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information: