git.iko.soy/typeable/nixpkgs
on master help sign in
xinit: don't unset DBUS_SESSION_BUS_ADDRESS in startx

upstream startx unsets DBUS_SESSION_BUS_ADDRESS, which in turn breaks applications run under the startx display manager. arch has shipped this patch for years as well. (with review changes from @Mic92)

commitfc0a5b577e0fe74daac16dc562b818f203bad07b authorpennae <github@quasiparticle.net> dateWed 21 Apr 2021, 15:20 (6 years ago) parent842f900
1 file changed+8
pkgs/servers/x11/xorg/overrides.nix+8
pkgs/servers/x11/xorg/overrides.nix+8
@@ -773,6 +773,14 @@ self: super:
773773 "--with-launchdaemons-dir=\${out}/LaunchDaemons"
774774 "--with-launchagents-dir=\${out}/LaunchAgents"
775775 ];
776+ patches = [
777+ # don't unset DBUS_SESSION_BUS_ADDRESS in startx
778+ (fetchpatch {
779+ name = "dont-unset-DBUS_SESSION_BUS_ADDRESS.patch";
780+ url = "https://git.archlinux.org/svntogit/packages.git/plain/repos/extra-x86_64/fs46369.patch?h=packages/xorg-xinit&id=40f3ac0a31336d871c76065270d3f10e922d06f3";
781+ sha256 = "18kb88i3s9nbq2jxl7l2hyj6p56c993hivk8mzxg811iqbbawkp7";
782+ })
783+ ];
776784 propagatedBuildInputs = attrs.propagatedBuildInputs or [] ++ [ self.xauth ]
777785 ++ lib.optionals isDarwin [ self.libX11 self.xorgproto ];
778786 postFixup = ''