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/xterm: Replace by nixos/xsession #68371
Conversation
…hing as `xterm` `xterm` is badly named and is confusing users. `xsession` is a far more descriptive name that will guide the user to create a working session by themselves.
And add notice explaining how it's replaced by `xsession`.
services.xserver.desktopManager.session = singleton | ||
{ name = "xsession"; | ||
start = '' | ||
${pkgs.gnome3.zenity}/bin/zenity --error --text 'The user must provide a ~/.xsession file containing session startup commands.' --no-wrap |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using this program, would it bring in some undesirable deps for certain users?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I wanted to use xdialog but that was seemingly not packaged. If you know of another similar package I'm all ears.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could use xmessage
(though with a far less readable error message).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's xmessage but it's kinda ugly. Looking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, looks like I commented that before refreshing 🤣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems xdialog also uses gtk so I'm not sure it matters much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like I was thinking about xmessage
when I said xdialog
. I do agree this require a change to not bring gnome3 into scope.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, being pretty is not a desired outcome. The outcome is to ensure that people relying on xsession have a solution, while at least showing something to other users explaining what's going on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's stick with zenity then (unless anyone have another good option).
I don't want to sacrifice readability.
Writing user-friendly message is hard, with that said, let's think up better ones. First of all, there are two situations where the message will be shown
For the first kind of users, the message explains what to do correctly. Though, the phrasing ("the user") makes for a weirdly disjointed experience. "The user" is likely the one reading the message. For the second kind of users, it does not help them. They are being asked to create a file they may not want, or know how to use. The message needs to somehow explain that they must choose another session in the display manager. Bonus points for detecting that there are other sessions enabled, when there aren't add that they need to enable other sessions. Additional bonus points to show specific instructions for the enabled display manager. |
And for When there are more sessions enabled:
When only
Does this sound feasible? I'm thinking though that this may be a bit abrupt to only show those messages without giving the ability to act on them within the session... which would only be possible if we launched a terminal for the user, in addition to the prompt. And now I'm thinking we may need to figure out the WM with the smallest closure and somehow shoe-horn it there and I'm not so sure about anything :/. |
Suddenly we've created a fallback xterm session for the user with very helpful messages @samueldr |
I believe that we'll see some users enable Though, I think there's one difference in having a wm+xterm, compared to xterm only: user friendlyness.
|
Shouldn't this also include removing the lines nixpkgs/nixos/modules/services/x11/display-managers/default.nix Lines 110 to 113 in 2355cc1
from display-managers/default.nix ? Otherwise it seems to me that the ~/.xsession file would take priority regardless of the choice of desktop manager.
|
@rycee I think we discussed that this change is just a starting point to eventually do this. |
@worldofpeace Fair enough, I haven't followed the discussions and I agree that this change by itself would be very useful for somebody who's not having an |
I'm still down to do this or something similar for 20.03. |
Sounds good to me @Ericson2314. I'll add it to the milestone, hopefully we can circle back to get it finished. It was just difficult when it came in when 19.09 was released/releasing. Edit: already in the milestone. |
Am I correct that this means that to get no |
Hello, I'm a bot and I thank you in the name of the community for your contributions. Nixpkgs is a busy repository, and unfortunately sometimes PRs get left behind for too long. Nevertheless, we'd like to help committers reach the PRs that are still important. This PR has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human. If this is still important to you and you'd like to remove the stale label, we ask that you leave a comment. Your comment can be as simple as "still important to me". But there's a bit more you can do: If you received an approval by an unprivileged maintainer and you are just waiting for a merge, you can @ mention someone with merge permissions and ask them to help. You might be able to find someone relevant by using Git blame on the relevant files, or via GitHub's web interface. You can see if someone's a member of the nixpkgs-committers team, by hovering with the mouse over their username on the web interface, or by searching them directly on the list. If your PR wasn't reviewed at all, it might help to find someone who's perhaps a user of the package or module you are changing, or alternatively, ask once more for a review by the maintainer of the package/module this is about. If you don't know any, you can use Git blame on the relevant files, or GitHub's web interface to find someone who touched the relevant files in the past. If your PR has had reviews and nevertheless got stale, make sure you've responded to all of the reviewer's requests / questions. Usually when PR authors show responsibility and dedication, reviewers (privileged or not) show dedication as well. If you've pushed a change, it's possible the reviewer wasn't notified about your push via email, so you can always officially request them for a review, or just @ mention them and say you've addressed their comments. Lastly, you can always ask for help at our Discourse Forum, or more specifically, at this thread or at #nixos' IRC channel. |
I marked this as stale due to inactivity. → More info |
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 @