In SDDM there is an menu of sessions types (for example, it may be Plasma, XFCE and Openbox). Is there a way to add custom options here? For example, the same Plasma option but started with nvidia-xrun script?
For now i tried this:
- Copied /usr/share/xsessions/plasma.desktop to plasma-nvidia.desktop and added Exec=/usr/bin/nvidia-xrun into it;
- Added startkde to the end of file /etc/X11/xinit/nvidia-xinitrc;
- Added my user to sudoers for commands tee and modprobe (they are used in nvidia-xrun script):
%bumblebee ALL=(ALL) NOPASSWD:/usr/bin/tee,/usr/sbin/modprobe
I can choose Plasma-Nvidia in SDDM but when i try to insert password - SDDM freezes. LED on my laptop signalize that GPU is started but Plasma session never appears.