How can I logout from the GUI using CLI?

Ankit

I chose an Openbox DE at the time of login and the system took ages to load the DE. So I switched to CLI (Ctrl+Alt+F1) and rebooted my system (but I wanted to logout from the GUI and not restart the whole system).

My question is, can I issue some command at CLI to log me out from the GUI so that I can select different DE. (I don't want to restart my system every-time DE hangs.)


$ DISPLAY=:0 gnome-session-quit --force

** (gnome-session-quit:3144): WARNING **: Failed to call logout: The name org.gnome.SessionManager was not provided by any .service files
mblasco

To end all user processes and be sent back to the login screen, you can use:

kill -9 -1

Don't run it as root though, for reasons discussed here.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I logout from the GUI using CLI?

From Dev

How can I exit/logout from PostgreSQL?

From Dev

logout of CLI & reenter GUI

From Dev

logout of CLI & reenter GUI

From Dev

How can I open a JavaFX GUI from JavaSwing GUI?

From Dev

How can I extract Signatures data from a Windows `exe` file under Linux using cli

From Dev

How can logout using spring boot jwt

From Dev

How do I logout using only the keyboard?

From Dev

How do I logout using only the keyboard?

From Dev

How can I input time(datatype) in java using netbeans gui

From Dev

How can I program a calculator with a GUI using tkinter in Python?

From Dev

How Can I Center JLabel using NetBeans Gui Builder?

From Dev

How can I create a frontend/GUI page using animations

From Dev

How can I start octave from the command line and not the GUI?

From Dev

How can I change GUI from std::thread?

From Dev

How Can I save data from GUI to array

From Dev

How can I return multiple values from MATLAB GUI function

From Dev

How can I update the GUI with live results from a for loop?

From Dev

How can I activate control statement from gui button?

From Dev

How can I disable the java GUI wizard pages from resizing

From Dev

How can I start a VM in headless mode from the VirtualBox GUI?

From Dev

How can I send a Label to gui from another thread - PyQt

From Dev

How to copy from CLI without a GUI or a mouse

From Dev

How to logout from Facebook using Spring Social

From Dev

How can I get Global Logout working in a multi tenant SAML application using spring-security-saml?

From Dev

How can I safely shutdown/reboot/logout KDE from the command line?

From Dev

How can I filter certain commands from multi-line Bash history on logout?

From Dev

How to switch from GUI to CLI mode and terminate any GUI program?

From Dev

How to switch from GUI to CLI mode and terminate any GUI program?

Related Related

  1. 1

    How can I logout from the GUI using CLI?

  2. 2

    How can I exit/logout from PostgreSQL?

  3. 3

    logout of CLI & reenter GUI

  4. 4

    logout of CLI & reenter GUI

  5. 5

    How can I open a JavaFX GUI from JavaSwing GUI?

  6. 6

    How can I extract Signatures data from a Windows `exe` file under Linux using cli

  7. 7

    How can logout using spring boot jwt

  8. 8

    How do I logout using only the keyboard?

  9. 9

    How do I logout using only the keyboard?

  10. 10

    How can I input time(datatype) in java using netbeans gui

  11. 11

    How can I program a calculator with a GUI using tkinter in Python?

  12. 12

    How Can I Center JLabel using NetBeans Gui Builder?

  13. 13

    How can I create a frontend/GUI page using animations

  14. 14

    How can I start octave from the command line and not the GUI?

  15. 15

    How can I change GUI from std::thread?

  16. 16

    How Can I save data from GUI to array

  17. 17

    How can I return multiple values from MATLAB GUI function

  18. 18

    How can I update the GUI with live results from a for loop?

  19. 19

    How can I activate control statement from gui button?

  20. 20

    How can I disable the java GUI wizard pages from resizing

  21. 21

    How can I start a VM in headless mode from the VirtualBox GUI?

  22. 22

    How can I send a Label to gui from another thread - PyQt

  23. 23

    How to copy from CLI without a GUI or a mouse

  24. 24

    How to logout from Facebook using Spring Social

  25. 25

    How can I get Global Logout working in a multi tenant SAML application using spring-security-saml?

  26. 26

    How can I safely shutdown/reboot/logout KDE from the command line?

  27. 27

    How can I filter certain commands from multi-line Bash history on logout?

  28. 28

    How to switch from GUI to CLI mode and terminate any GUI program?

  29. 29

    How to switch from GUI to CLI mode and terminate any GUI program?

HotTag

Archive