NixOS GNOME | 407 Members | |
| A room for maintainers of GNOME & GNOME-Related desktop environments (xfce, cinnamon, pantheon...) | 95 Servers |
| Sender | Message | Time |
|---|---|---|
| 19 Nov 2023 | ||
| How do I go about debugging why does Nautilus, when launched from a terminal, allows to properly open files in respective applications from | 16:32:21 | |
| * How do I go about debugging why does Nautilus, when launched from a terminal, allows to properly open files in respective applications from | 16:32:47 | |
| It doesn't seem to show any | 16:33:22 | |
| This problem doesn't seem to be Nautilus-specific, which makes me thing it's something GIO related. But then Telegram Desktop, a Qt app, refuses to open links in Firefox if launched via | 16:39:23 | |
| It's all so confusing and so annoying. | 16:39:40 | |
| ok, the gtk app chooser widget seems to be one thing responsible for collecting | 16:48:56 | |
Vika (she/her): I would guess it has something to do with XDG_DATA_DIRS environment variable | 16:50:42 | |
compare strings /proc/$pid/environ of Nautilus being launched by the different methods | 16:51:21 | |
* compare strings /proc/$pid/environ of Nautilus launched by the two different methods | 16:52:19 | |
| Jan Tojnar That was my first thought! But... | 16:54:26 | |
| In fact, almost the entire environment is the same! Sans a few variables GIO sets when launching an application using | 16:55:06 | |
| Specifically, these variables are | 16:57:49 | |
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 | |
| ...wait a second. | 17:10:27 | |
| Why does specifically Nautilus have its | 17:10:41 | |
| This might be a systemd/d-bus thing. | 17:11:07 | |
| ok new theory: something resets/doesn't properly export | 17:12:37 | |
| aha. | 17:18:38 | |
| i'm really stupid sometimes. | 17:18:46 | |
| 20:38:54 | ||
| 20 Nov 2023 | ||
| Gnome extensions should be good to go now | 10:00:55 | |
| ElvishJerricco Since you asked in "Off Topic", I decided to try out a few GNOME extensions that replicate the window stacking effects that are found in Windows. Ended up settling for one directly inspired by it. I like this one because like in windows Win+Left and Win+Up will put one window on 1/4th of the screen. You can add other columns and rows, but I like this standard. Hope this helps! -> https://github.com/fmstrat/wintile | 15:26:44 | |
| 17:29:26 | ||
| because of https://github.com/nix-community/home-manager/issues/1011, I know GNOME Wayland doesn’t source ~/.profile. but I can tell that /etc/profile is sourced at some point because Alt+F2 printenv shows things it sets. I have looked through NixOS modules quite a bit but I can’t seem to find where a bash login shell is spawned under my user. does GDM do this? | 18:58:10 | |
| * because of https://github.com/nix-community/home-manager/issues/1011, I know GNOME Wayland doesn’t source ~/.profile. but I can tell that /etc/profile is sourced at some point because `Alt+F2 printenv` shows things it sets. I have looked through NixOS modules quite a bit but I can’t seem to find where a bash login shell is spawned under my user. does GDM do this? | 18:58:45 | |
* because of https://github.com/nix-community/home-manager/issues/1011, I know GNOME Wayland doesn’t source ~/.profile. but I can tell that /etc/profile is sourced at some point because Alt+F2 printenv shows things it sets. I have looked through NixOS modules quite a bit but I can’t seem to find where a bash login shell is spawned under my user. does GDM do this? | 19:00:10 | |
| from what I am reading upstream gnome Wayland doesn’t source /etc/profile either, which makes sense, but on my nixos machine it sure seems like something is sourcing it | 19:06:16 | |
| and since this workaround works it must be run as my user https://github.com/nix-community/home-manager/issues/1011#issuecomment-606869802 | 19:07:01 | |
| add a line in there to dump something like pstree to a tmpfile each time it's run? | 21:25:30 | |
| 21:37:29 | ||