I am new to xubuntu, somtimes my xfce desktop crashes, and I can only use tty1 from command line.
I want to know how can I restart my xfce in tty7 from tty1?
I've googled it, but didn't found the solution. Thanks.
For me startxfce4
didn't work, but pkill
did.
You could try the following command:
xfwm4 --replace
It restarts the windows manager.
pkill
worked but seemed a little extreme to me. If I had other stuff going on in other tty sessions, it would kill those too.
Another solution is:
sudo systemctl restart lightdm
A great strength of Linux is that there are always multiple ways to achieve the same task.
pkill
. When I tried xfwm4 --replace
(from other answers), it threw a GTK3 error from the command line. I tried this, and it worked great. Thanks Alan.
– Mike
Apr 05 '20 at 23:28
systemctl
and service
commands fail with the error "Unit lightdm.service not found". What's wrong, please? I've installed the Xfce using apt (apt install xfce4
).
– David Ferenczy Rogožan
Jun 16 '23 at 02:26
Try killing user by
pkill -KILL -u yourusername
This will bring you back to login screen though.
You can try startxfce4
.
As this site says:
Restart XFCE4 : from the command line, you would better use "startxfce4" to bypass stupid distribution X startup scripts that can drive you crazy, really.
startxfce4
I got these messages:
/usr/bin/startxfce4: X server already running on display :0.0 xfce4-session: Another session manager is already running
– Obsidian Jackal Jul 04 '15 at 21:43already running
because your xfce4
was not crashed ;)—this is a linguistic issue. Anyway, this answer fits the question. :)
– loved.by.Jesus
Aug 27 '19 at 10:23
xfwm4 --replace &
– fatal_error Jan 27 '17 at 02:02