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
display-managers: Fix the xsession parameters #25138
Conversation
This does not fix the problem with sddm. I actually find the current |
@Mic92 Are you running
Agreed 😄
I'd rather improve the documentation/comments and refactor the code. Normally I would expect that the |
Here is what I get:
I added the following: # Handle being called by SDDM.
if test "''${1:0:1}" = / ; then eval exec $1 $2 ; fi
+ echo "first: $1"
+ echo "second: $2"
+ echo "third: $3"
+ echo "forth: $4"
+ echo "fifth: $5" it is rexeced twice. It may work for you because you are using a desktop manager rather then a window manager. |
It actually doesn't but looking at the specification I hoped it would. I expected that |
be0c338
to
52821f9
Compare
This should fix "everything". I'll run some final tests and merge this in ~1-2h. If it doesn't cause any problems on |
b04dbf6
to
9a72550
Compare
The xsession script was called with inconsistent (depending on the display managers) and wrong parameters. The main reason for this where the spaces the parameter syntax. In order to fix this the old syntax: $1 = '<desktop-manager> + <window-manager>' Will be replaced with a new syntax: $1 = "<desktop-manager>+<window-manager>" This assumes that neither "<desktop-manager>" nor "<window-manager>" contain the "+" character but this shouldn't be a problem. This patch also fixes the quoting by using double quotes (") instead of single quotes (') [0]. Last but not least this'll add some comments for the better understanding of the script. [0]: https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s06.html
9a72550
to
1273f41
Compare
Let's hope that this doesn't break anything :D |
From the specification: "Quoting must be done by enclosing the argument
between double quotes" 0.
Tested with:
On
nixos-unstable
(with a VirtualBox VM).Note: I've run into some very strange bugs.
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)