Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NixOS] Xfce and i3 combination broken #10634

Closed
brodul opened this issue Oct 26, 2015 · 7 comments
Closed

[NixOS] Xfce and i3 combination broken #10634

brodul opened this issue Oct 26, 2015 · 7 comments
Labels
Milestone

Comments

@brodul
Copy link
Contributor

brodul commented Oct 26, 2015

I am using 15.09 channel.

Problem

When the desktop initializes the xfce4-session and the xfce4-power-manager are not started.
Meaning that the events like 'Suspend on lid close' are not working (no power manager). And the nm-applet is not started ( no xfce startup programs)

Steps to reproduce:

  • add this lines to configuration.nix
  services.xserver.desktopManager.xfce.enable = true;
  services.xserver.windowManager.i3.enable = true;
  services.xserver.windowManager.default = "i3";
  • rebuild switch the configuration
  • restart X server

Possible solutions/workarounds:

  • deleting xfce4 user settings (goodbye state) (does not help)
  • configuring .i3 to start nm-applet (works)
  • configuring .i3 to start xfce4-power-manager (does not work (lack of permissions in order to connect to DBUS) )
@brodul brodul changed the title Xfce and i3 combination broken [NixOS] Xfce and i3 combination broken Oct 26, 2015
@domenkozar
Copy link
Member

Do you by any chance have ~/.xsession file? That will override xfce startup.

@brodul
Copy link
Contributor Author

brodul commented Oct 27, 2015

I have no ~/.xsession nor ~/.xinitrc.

@domenkozar
Copy link
Member

Hmm, OK. Is this something that started recently? cc @vcunat

@vcunat
Copy link
Member

vcunat commented Oct 27, 2015

I don't know, as I just use desktopManager.xfce.enable = true; and auto-start WM from my xfce session (XMonad). I'm not even certain windowManager is a good way to configure such things, as it seems very user-specific to me.

@vcunat
Copy link
Member

vcunat commented Oct 27, 2015

suspend-on-lid-close: does it really not work? IIRC the current config should be that it does suspend by default unless a desktop/power manager overrides it.

@vcunat
Copy link
Member

vcunat commented Oct 27, 2015

Side note: multi-user systems aren't very common nowadays, but still, it feels wrong to me (personally) to set such things in configuration.nix. Maybe we should allow them (also) in ~/.nixpkgs/config.nix or a similar location (in future), even custom desktopManager, etc. (Not very constructive for this issue; I'm sorry.)

@brodul
Copy link
Contributor Author

brodul commented Oct 27, 2015

@vcunat Suspend on lid works for the first time. Then stops working.
I know it's a bit optimistic to expect xfce and i3 work out of the box (just by configuring NixOS), but it did in 14.12 release and before.

Anyway I fixed it with the help @domenkozar . I was comparing the setup with @domenkozar which is using the unstable all the time.
So now I reproduced his settings and now it works for me.
My configuration.nix is the same.

I just added .xsession (don't forget to chmod +x it) to my home which overrides xserver initialization.

startxfce4&
dunst&
nm-applet&
exec i3

It works for me. But the behavior definitely changed from 14.12 to 15.09 .

@brodul brodul closed this as completed Oct 27, 2015
@lukateras lukateras added the 6.topic: xfce The Xfce Desktop Environment label Dec 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants