Skip to content

Commit

Permalink
Revert "nixos/xfce: use sessionPackages"
Browse files Browse the repository at this point in the history
This reverts commit 966e56c.

See #78421 (comment).
  • Loading branch information
worldofpeace committed Feb 7, 2020
1 parent d35c686 commit 5e307dc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
11 changes: 8 additions & 3 deletions nixos/modules/services/x11/desktop-managers/xfce.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,14 @@ in
"/share/gtksourceview-4.0"
];

services.xserver.displayManager.sessionPackages = [
pkgs.xfce.xfce4-session
];
services.xserver.desktopManager.session = [{
name = "xfce";
bgSupport = true;
start = ''
${pkgs.runtimeShell} ${pkgs.xfce.xfce4-session.xinitrc} &
waitPID=$!
'';
}];

services.xserver.updateDbusEnvironment = true;
services.xserver.gdk-pixbuf.modulePackages = [ pkgs.librsvg ];
Expand Down
22 changes: 3 additions & 19 deletions pkgs/desktops/xfce/core/xfce4-session/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ mkXfceDerivation, polkit, exo, libxfce4util, libxfce4ui, xfconf, iceauth, gtk3, glib, libwnck3, xorg, xfce4-session, runtimeShell }:
{ mkXfceDerivation, polkit, exo, libxfce4util, libxfce4ui, xfconf, iceauth, gtk3, glib, libwnck3, xorg, xfce4-session }:

mkXfceDerivation {
category = "xfce";
Expand All @@ -14,25 +14,9 @@ mkXfceDerivation {
# See https://github.com/NixOS/nixpkgs/issues/36468
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";

# Don't use startxfce4 in xfce.desktop
# It's has FHS isms
postFixup = ''
chmod +x $out/etc/xdg/xfce4/xinitrc
patchShebangs $out/etc/xdg/xfce4/xinitrc
passthru.xinitrc = "${xfce4-session}/etc/xdg/xfce4/xinitrc";

substituteInPlace "$out/share/xsessions/xfce.desktop" \
--replace "Exec=startxfce4" "Exec=$out/etc/xdg/xfce4/xinitrc"
'';

passthru = {
xinitrc = "${xfce4-session}/etc/xdg/xfce4/xinitrc";

providedSessions = [
"xfce"
];
};

meta = {
meta = {
description = "Session manager for Xfce";
};
}

0 comments on commit 5e307dc

Please sign in to comment.