Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi folks
When I startx my xfce4 desktop from command line (I'm using Slackware-Current)
loginct shows tty.
loginctl show-session 1 --p Type --value
tty
But when I use one display manager, like xdm or sddm for example, it shows
correctly x11
loginctl show-session 1 --p Type --value
x11
The problem is, anydesk and other applications only works in Xorg, and they check this type if is x11 to work, so I can only use these softwares using a display manager (xdm or sddm for example).
But I can't use these displayer manager, because I need autologin, and xdm doens't have it, and sddm has so many dependences to work on for my little server.
Has anyone came into this problem too? how startx xfce4 or other environment with the correctly loginctl session type?
Thanks all in advance.
Last edited by drigohighlander; 09-07-2023 at 04:44 PM.
First of all setting XDG_SESSION_TYPE before login (/etc/rc.d/rc.local) or after that (and ran startx), didn't work.
What worked was setting this variable in /etc/environment, but all my logins shows Type=x11 even when I didn't start X yet
So it's not the ideal solution.
I managed to skip the login part, and go right through the X and xfce4, so I manually ran the profile scripts, but loginctl shows 'no sessions' now, it's like I didn't have logged in the system (right.) but I didn't manage how to run the same login shell after boot in the terminal.
su doens't work, loginctl still shows no sessions.
So ok, it worked, but it's not a ideal fix.
Thank you for all your help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.