重新启动GNOME而不重新启动Xorg?


12

有时会发生某些应用程序崩溃并使Gnome桌面不稳定的情况,例如上方的栏消失了。通过重新启动X ctrl + shift + backspace,我可以将其重置。但是有没有办法完全重新启用标准或Gnome?


1
您正在使用哪个版本的GNOME 2或3?
slm

Answers:


12

您应该能够使用以下命令重新启动Gnome

 gnome-shell --replace

从手册中:

DESCRIPTION
   GNOME Shell provides core user interface functions for the GNOME 3 desktop,
   like switching to windows and launching  applications.  GNOME  Shell  takes
   advantage  of  the  capabilities of modern graphics hardware and introduces
   innovative user interface concepts to provide  a  visually  attractive  and
   easy to use experience.

OPTIONS
   --replace
          Replace the running window manager

3

您可以按Alt-F2(IIRC)进入可在其中键入命令的窗口。除了常规命令外,GNOME Shell还支持一些自定义命令来控制桌面环境的行为。在这种情况下,您需要restart,它将重新启动命令行管理程序,而不是计算机。

如果它崩溃太多而无法工作,请使用terdon的答案


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.