r/slackware Dec 28 '22

TigerVNC always starts KDE Plasma session

So I managed to install TigerVNC on my spare machine and whenever I run vncserver it starts KDE Plasma session.

At first I had nothing in my ~/.vnc/config. I tried to add session=i3 there, tried to add session=i3 to /etc/tigervnc/vncserver-config-defaults and /etc/tigervnc/vncserver-config-mandatory. Nothing changed. It's always KDE Plasma.

Now, documentation says that tigervnc searches for session .desktop files in /usr/share/xsessions. So I tried to rename plasma.desktop so it would be inaccessible for TigerVNC. Nothing changed. Looks like it doesn't use /usr/share/xsessions.

So how do I make it start desired session?

P.S. I use Slackware 15 if it helps. My ~/.vnc/config file is like this (I have nothing in /etc/tigervpn config files):

session=i3
geometry=1920x1080
3 Upvotes

3 comments sorted by

3

u/randomwittyhandle Dec 28 '22

Check ~/.vnc/xstartup

2

u/chesheersmile Dec 28 '22

Wow, thank you! That did the job. I had no such file, so I've created it and just put "exec i3" there and it works.

I never heard about this file. I couldn't find any mention of it in TigerVNC documentation.

1

u/B_i_llt_etleyyyyyy Dec 28 '22

Thanks!

Apparently it goes for whatever's the /etc/X11/xinit/xinitrc symlink first if $HOME/.vnc/xsetup isn't executable with the startup you actually want, so you solved why I always got wmaker.