| 19 Nov 2023 |
Vika (she/her) | Jan Tojnar That was my first thought! But... XDG_DATA_DIRS is almost the same between launching anything from wofi and my terminal, and both entries include /run/current-system/sw/share at the end, as they should.
| 16:54:26 |
Vika (she/her) | In fact, almost the entire environment is the same! Sans a few variables GIO sets when launching an application using g_app_info_launch.
| 16:55:06 |
Vika (she/her) | Specifically, these variables are XDG_ACTIVATION_TOKEN, GIO_LAUNCHED_DESKTOP_FILE{,_PID}, DESKTOP_STARTUP_ID and some minor variables like GPG_TTY (surely they don't affect this?). PATH is sometimes a bit different, but it's because of prefixes — the end is always /run/current-system/sw/share as expected.
| 16:57:49 |
Jan Tojnar | Vika (she/her): I would try running it in terminal with XDG_DATA_DIRS=/run/current-system/sw/share and maybe some other variables cleared | 17:01:30 |
Vika (she/her) | ...wait a second. | 17:10:27 |
Vika (she/her) | Why does specifically Nautilus have its PATH reset only when launching via GIO?
| 17:10:41 |
Vika (she/her) | This might be a systemd/d-bus thing. | 17:11:07 |
Vika (she/her) | ok new theory: something resets/doesn't properly export PATH and anything started via D-Bus (and therefore anything launched via GIO) doesn't have its PATH set.
| 17:12:37 |
Vika (she/her) | aha. dbus-update-activation-environment PATH does the trick. Looks like I forgot to call it in my sway session script.
| 17:18:38 |
Vika (she/her) | i'm really stupid sometimes. | 17:18:46 |
| pbsds changed their display name from pbsds (federation borken, may not see reply) to pbsds. | 20:38:54 |
| 20 Nov 2023 |
piegames | Gnome extensions should be good to go now | 10:00:55 |