-
-
Notifications
You must be signed in to change notification settings - Fork 15k
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/desktop-managers/xterm: Disable by default #67355
Conversation
yes! this is a constant annoyance when new people start with nixos and think something is broken, because only xterm shows up after entering the login credentials in the desktopManager. |
Is it that |
it being the default is the core problem, but since xterm is a very user unfriendly desktop-manager, there should be imho no reason to even show this to the user in the default case. |
That is one of the problems, yes. It's also completely unusable as a desktop-manager so having it enabled by default serves absolutely no purpose. |
Another thought: I should add a changelog entry before merging. |
I was actually interested why |
It's a confusing default for some display managers that will default to it even when you have defined another display manager.
Is it really a bug? Our DEs do not have an inherent ordering so wouldn't it be up to each individual display manager to choose which one to pick by default? |
6f4d703
to
f140dfb
Compare
So it seems, for users like @srhb that rely on xterm DE being default enabled they're unexpectedly greeted with their DM not starting their session. I think the release note could clarify this, but I think maybe it would be intuitive if, when there's no DE or WM and xserver is enabled, we turn on xterm. |
I think adding a big fat "WARNING: If you had no explicit |
Sidenote: I think it's probably more common with home-manager users than pure NixOS users. |
In the note or using warnings in the xserver module? |
In the release note. I don't think I would have realized the consequences of this change just by reading the current text. :) |
Would it make sense, and can it be done, to implement an |
|
Right, I think I understand that any wrapped session will end up using So, not exactly, but almost. I'm thinking about: {
services.xserver.desktopManager.xsession.enable = true;
} But the implementation could be the same or about the same as the This only ends up being a coat of sugar around the existing infra. Though it ends up being helpful in signalling "I want to use my home directory's ~/.xsession". That is, rather than defining the xsession commands at the system level. Does this make sense? |
Correct, and in some cases it can be an "impurity" that causes issues for some users of nixos and our declarative nature. Though that's how an xsession wrapper should be like.
Do you mean an option which the semantics are that it's for "hey 👋️, I just want to use a ~/.xsession". Perhaps @rycee has an opinion? As noted @srhb said it's common for those users, and I do like drawing from home-manager as an interesting almost experimental module system/UI. |
Yes, that's basically it.
I'm thinking this could be an initial step into making the default wrapper not exec I'm wondering how we could deprecate the misfeature of launching the xsession script on other sessions in a user-friendly way. I'm thinking the most likely one is to use something akin to This probably should be moved to a feature issue or something rather than hijacking this PR's comments :). |
We may want to open an issue (I can do that) but I definitely consider this a blocker for 19.09. :) I definitely think that falling back to something like an xsession if nothing else is selected is the right behavior for now. Xterm definitely is a poor name for it, but that's about the only thing wrong with it. |
Accidentally found this PR to learn that I need to enable xterm manually. My setup uses
How can we help other users who stumble on this issue so they don't have to search for PRs on github? |
It appears that this PR has broken my laptop in the sense that I can no longer log in at all (#68360). Since I use neither Gnome nor KDE, xterm is my only session type! |
I'm tempted to revert for now and leave any improvements for 20.03. Anyone against? |
I think that sounds very prudent, giving the timing. 👍 |
Can we use stateVersion? So it's still default, but for new people it isn't? |
It's a confusing default for some display managers that will default
to it even when you have defined another display manager.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @