You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
6.topic: GNOMEGNOME desktop environment and its underlying platform6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: module (new)This needs a module to be created
What do you think is the best way to integrate this?
The key thing was to set XDG_DATA_DIRS in the executable so that gnome-flashback, gnome-panel and the window manager are available. For some strange reason, gnome-flashback needs to be added twice like this ${gnome3.gnome-flashback}/share:${gnome3.gnome-flashback}/share/gsettings-schemas/gnome-flashback-3.28.0 otherwise its gsettings schemas will not be found (according to strace). Do you know why this might be?
For some strange reason, gnome-flashback needs to be added twice like this ${gnome3.gnome-flashback}/share:${gnome3.gnome-flashback}/share/gsettings-schemas/gnome-flashback-3.28.0 otherwise its gsettings schemas will not be found (according to strace). Do you know why this might be?
Yes, this is normal. The schemas are looked up in $XDG_DATA_DIRS/glib-2.0/schemas and we move that directory to share/gsettings-schemas/$name to avoid conflicts of gschemas.compiled. Normally, wrapGAppsHook will take care of this.
OK, I added wrapGAppsHook to the gist. Do you have any thoughts as to how to generalize this to different window managers? Also, should the derivation take the session files from gnome-flashback and splice in the given window manager, or should we copy paste them into the derivation?
Also, should the derivation take the session files from gnome-flashback and splice in the given window manager, or should we copy paste them into the derivation?
Both have some merit, do not really have a preference.
We need to take into account that panel applets are not picked up from XDG_DATA_DIRS but from GNOME_PANEL_APPLETS_DIR environment variable (source). We need to do something similar to what MATE is doing.
@jtojnar That is not correct! GNOME_PANEL_APPLETS_DIR only allows to overwrite location and I would say you should not depend on that environment variable...
Yes, I am aware of that. Unfortunately, we cannot use that, since each package on Nix is installed into its own immutable prefix, so we would not be able to add gnome-applets or other packages once gnome-panel was build.
The only way around it is to patch the program to rely on XDG_DATA_DIRS or other environment variable.
6.topic: GNOMEGNOME desktop environment and its underlying platform6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: module (new)This needs a module to be created
Activity
chpatrick commentedon Jan 8, 2019
Hi, I've managed to get Flashback to work with XMonad. It should also work with the default metacity/compiz but I haven't tried it yet. https://gist.github.com/chpatrick/f7e8c30026634d6344924c87c87a08d6
What do you think is the best way to integrate this?
The key thing was to set
XDG_DATA_DIRSin the executable so thatgnome-flashback,gnome-paneland the window manager are available. For some strange reason,gnome-flashbackneeds to be added twice like this${gnome3.gnome-flashback}/share:${gnome3.gnome-flashback}/share/gsettings-schemas/gnome-flashback-3.28.0otherwise its gsettings schemas will not be found (according to strace). Do you know why this might be?jtojnar commentedon Jan 8, 2019
Yes, this is normal. The schemas are looked up in
$XDG_DATA_DIRS/glib-2.0/schemasand we move that directory toshare/gsettings-schemas/$nameto avoid conflicts ofgschemas.compiled. Normally,wrapGAppsHookwill take care of this.jtojnar commentedon Jan 8, 2019
As for the expression:
Those are not necessary, they are not ran during build.
Yeah,
wrapGAppsHooktonixpkgs/pkgs/desktops/gnome-3/misc/gnome-flashback/default.nix
Line 57 in e012ec5
XDG_DATA_DIRSsetting inlibexec/gnome-flashback-xmonad.Maybe add a comment why this is necessary.
should not be necessary,
services.xserver.desktopManager.gnome3.debugoption should enable it.Otherwise it looks good to me and should be fine for a NixOS module.
chpatrick commentedon Jan 8, 2019
OK, I added
wrapGAppsHookto the gist. Do you have any thoughts as to how to generalize this to different window managers? Also, should the derivation take the session files fromgnome-flashbackand splice in the given window manager, or should we copy paste them into the derivation?jtojnar commentedon Jan 8, 2019
This will work too, though I was thinking about adding it directly to
gnome-flashbackpackage.You can always parametrize it like https://gist.github.com/jtojnar/1414b2fe9bbfab6253719e985bf2d3a1 but as you noticed, the desktop files are not very elegant. Maybe it will get better when gnome-session switches to systemd services.
Both have some merit, do not really have a preference.
chpatrick commentedon Jan 9, 2019
#53695
jtojnar commentedon Jan 10, 2019
We need to take into account that panel applets are not picked up from
XDG_DATA_DIRSbut fromGNOME_PANEL_APPLETS_DIRenvironment variable (source). We need to do something similar to what MATE is doing.muktupavels commentedon Jan 11, 2019
@jtojnar That is not correct!
GNOME_PANEL_APPLETS_DIRonly allows to overwrite location and I would say you should not depend on that environment variable...The real directory is
PANEL_APPLETS_DIR:https://gitlab.gnome.org/GNOME/gnome-panel/blob/b25f16c6077f383a2876512d280f20be10d5ac9a/gnome-panel/libpanel-applet-private/Makefile.am#L10
https://gitlab.gnome.org/GNOME/gnome-panel/blob/b25f16c6077f383a2876512d280f20be10d5ac9a/configure.ac#L242
https://gitlab.gnome.org/GNOME/gnome-panel/blob/b25f16c6077f383a2876512d280f20be10d5ac9a/configure.ac#L243
https://gitlab.gnome.org/GNOME/gnome-panel/blob/b25f16c6077f383a2876512d280f20be10d5ac9a/libpanel-applet/libpanel-applet.pc.in#L8
And there are new library that at some point will replace old library!:
https://gitlab.gnome.org/GNOME/gnome-panel/blob/b25f16c6077f383a2876512d280f20be10d5ac9a/gnome-panel/libpanel-applet-private/Makefile.am#L8
https://gitlab.gnome.org/GNOME/gnome-panel/blob/b25f16c6077f383a2876512d280f20be10d5ac9a/gnome-panel/libpanel-applet-private/gp-applet-manager.c#L114
jtojnar commentedon Jan 11, 2019
Yes, I am aware of that. Unfortunately, we cannot use that, since each package on Nix is installed into its own immutable prefix, so we would not be able to add
gnome-appletsor other packages oncegnome-panelwas build.The only way around it is to patch the program to rely on
XDG_DATA_DIRSor other environment variable.worldofpeace commentedon Aug 26, 2019
I believe this is fixed.
jtojnar commentedon Aug 26, 2019
I believe the missing parts are installation of panel applets and removing gnome-shell from gnome-session closure.
worldofpeace commentedon Aug 27, 2019
Could you open issues for those two improvements?
jtojnar commentedon Aug 27, 2019
Done