!XQQVyIbcAcHFvzmcTl:nixos.org

NixOS GNOME

403 Members
A room for maintainers of GNOME & GNOME-Related desktop environments (xfce, cinnamon, pantheon...)92 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
10 Dec 2023
@jtojnar:matrix.orgJan Tojnaralso not all extensions from the extension portal will work18:27:38
@jtojnar:matrix.orgJan Tojnar(some have dependencies that need to be patched on NixOS18:28:02
@edgar.vincent:matrix.orgedgar.vincent

Thanks a lot Jan Tojnar

19:47:55
@deerouspie:matrix.orgpiousdeer
In reply to @deerouspie:matrix.org
Oh with the new ES Modules system we can do static analysis to detect used dependencies quite easily actually! Plenty of tooling in JS world already does this
Here's a Node.js script that prints all gi:// dependencies of an extension using esbuild: https://gist.github.com/piousdeer/83dedd5155cec9aadbed4e076e41be26
22:50:12
@deerouspie:matrix.orgpiousdeer
$ ./listGnomeExtensionGiDependencies.mjs /nix/store/9c7vkilw1m8fwvr81xd2rcnf9cba7dys-gnome-shell-extension-color-picker-38/share/gnome-shell/extensions/color-picker@tuberry/ | jq
{
  "extension.js": [
    "gi://St",
    "gi://Gio",
    "gi://GLib",
    "gi://Meta",
    "gi://cairo",
    "gi://Shell",
    "gi://Clutter",
    "gi://GObject",
    "gi://Graphene",
    "gi://Soup/?version=3.0"
  ],
  "prefs.js": [
    "gi://Adw",
    "gi://Gtk",
    "gi://Gdk",
    "gi://GObject",
    "gi://Gio",
    "gi://GLib",
    "gi://Pango",
    "gi://Graphene",
    "gi://Soup/?version=3.0"
  ]
}
22:52:32
@deerouspie:matrix.orgpiousdeer Including those imported in JS submodules, dynamic import()s, export froms. So, a bit more complex than a regexp job 22:56:23
@deerouspie:matrix.orgpiousdeer There are apparently some built-in modules in GJS: "gi", "system", "cairo", "gettext". I don't know if there's more, but they should be added to external. 22:57:00
11 Dec 2023
@hpfr:matrix.orghpfrcan anyone point me where to look for why GIO_EXTRA_MODULES is getting the dconf path prepended to it again? it seems to be happening after /etc/profile, because set-environment adds gvfs, glib-networking, and dconf, and then I prepend a value in /etc/profile, and then dconf is prepended again somehow. GNOME Wayland session08:36:21
@hpfr:matrix.orghpfr * can anyone point me where to look for why GIO_EXTRA_MODULES is getting the dconf path prepended to it again? it seems to be happening after /etc/profile, because set-environment adds gvfs, glib-networking, and dconf, and then I prepend a value in /etc/profile, and then dconf is prepended again somehow. I’m using a GNOME Wayland session 08:36:32
@hpfr:matrix.orghpfr * can anyone point me where to look for why GIO_EXTRA_MODULES is getting the dconf path prepended to it again? it seems to be happening after /etc/profile, because /etc/set-environment adds gvfs, glib-networking, and dconf (via environment.sessionVariables from the corresponding NixOS modules, I think), and then I prepend a value in /etc/profile, and then dconf is prepended again somehow. I’m using a GNOME Wayland session 08:42:08
@hpfr:matrix.orghpfr
$ printenv GIO_EXTRA_MODULES | tr : \\n
/nix/store/i922kjr8b83ifdyfwi8fif6knrmjs146-dconf-0.40.0-lib/lib/gio/modules
/nix/store/i922kjr8b83ifdyfwi8fif6knrmjs146-dconf-0.40.0-lib/lib/gio/modules
/home/lh/.guix-home/profile/lib/gio/modules
/home/lh/.guix-home/profile/lib/gio/modules
/nix/store/di8rblply9n618k476df53fdbx373gbh-gvfs-1.52.1/lib/gio/modules
/nix/store/zd4zpqb3af9zgx7qjkvkmv87xyd2wgph-glib-networking-2.78.0/lib/gio/modules
/nix/store/i922kjr8b83ifdyfwi8fif6knrmjs146-dconf-0.40.0-lib/lib/gio/modules
08:49:06
@hpfr:matrix.orghpfrok I think it’s wrapGappsHook4 on kgx08:55:54
@hpfr:matrix.orghpfrbut it looks like Alt-F2 shows the session has a wrapper with both glib-networking and dconf as well :/09:00:47
@mountaind:matrix.org@mountaind:matrix.org joined the room.15:11:28
@mountaind:matrix.org@mountaind:matrix.org changed their display name from mountaind to Mountain D.15:20:11
@mountaind:matrix.org@mountaind:matrix.org set a profile picture.15:20:27
@mountaind:matrix.org@mountaind:matrix.org changed their profile picture.15:20:39
12 Dec 2023
@mountaind:matrix.org@mountaind:matrix.org left the room.01:15:24
@edgar.vincent:matrix.orgedgar.vincent

Hi all. I'd like to add ~/.local/bin/ to the PATH as seen by Gnome (rather than the shell, wich is did with environment.localBinInPath = true;) with home-manager. Does anyone know how to do that?

13:12:16
@edgar.vincent:matrix.orgedgar.vincent *

Hi all. I'd like to add ~/.local/bin/ to the PATH as seen by Gnome (rather than the shell, wich I did with environment.localBinInPath = true;) with home-manager. Does anyone know how to do that?

13:12:36
@edgar.vincent:matrix.orgedgar.vincent

Ah, home.sessionPath = [ "$HOME/.local/bin/" ]; seems to have done the trick.

13:32:40

Show newer messages


Back to Room ListRoom Version: 6