You are not logged in.

#1 2011-05-29 22:22:14

rAX
Member
From: Algiers
Registered: 2011-05-27
Posts: 86

How to restart(--replace) gnome-shell Ctrl+Alt+F*

Hi,

I'm having random Gnome-shell freezes, everything seems to be working fine except for the shell itself, which seems to be completely frozen. I want to restart it using CTRL+ALT+F* and

gnome-shell --replace

or

mutter--replace

, but I get this:

Window manager error: unable to open X display.

I know from random research that I have to set the $DISPLAY env. but I don't know which display to export.

Thanks in advance.

Last edited by rAX (2011-05-29 22:40:41)

Offline

#2 2011-05-30 16:20:58

Wey
Member
Registered: 2011-04-22
Posts: 217

Re: How to restart(--replace) gnome-shell Ctrl+Alt+F*

Hello rAX,
in theory, its something similiar to this

export DISPLAY=:0.0

However, here i had to issue gnome-shell --replace multiple times until it got accepted. And even then, it sometimes crashed completely and threw me back to the dm. An alternative could be to pkill gnome-shell, as it should get auto-respawned by the gnome-session.

edit: assuming /usr/share/applications/gnome-shell.desktop sets X-GNOME-AutoRestart=true

Last edited by Wey (2011-05-30 16:26:41)

Offline

#3 2011-05-31 14:12:47

rAX
Member
From: Algiers
Registered: 2011-05-27
Posts: 86

Re: How to restart(--replace) gnome-shell Ctrl+Alt+F*

Wey wrote:

Hello rAX,

Hello smile

in theory, its something similiar to this

export DISPLAY=:0.0

Yep, I tried this with no luck. I guess I need to get the correct display number.


However, here i had to issue gnome-shell --replace multiple times until it got accepted. And even then, it sometimes crashed completely and threw me back to the dm. An alternative could be to pkill gnome-shell, as it should get auto-respawned by the gnome-session.

edit: assuming /usr/share/applications/gnome-shell.desktop sets X-GNOME-AutoRestart=true

I tried this and it works great, I still have to issue the command while the shell is frozen, but I guess it'll work fine smile

Thank you.

Offline

#4 2012-07-06 19:14:03

dimath
Member
Registered: 2012-01-18
Posts: 17

Re: How to restart(--replace) gnome-shell Ctrl+Alt+F*

rAX wrote:
Wey wrote:

Hello rAX,

Hello smile

in theory, its something similiar to this

export DISPLAY=:0.0

Yep, I tried this with no luck. I guess I need to get the correct display number.


Use

w -f

Offline

#5 2012-08-08 11:39:00

ouzmoutous
Member
Registered: 2012-06-15
Posts: 2

Re: How to restart(--replace) gnome-shell Ctrl+Alt+F*

Hi.
I've the same issue and I would like to do a "gnome-shell --replace" instead of killing the gnome-shell process (which work but I don't think it's really clean).
When I do a "gnome-shell --replace" with DISPLAY=MyScreenNumber on a terminal on the gnome-shell it work, but it doesn't work on a tty.

Offline

#6 2012-08-08 11:46:35

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: How to restart(--replace) gnome-shell Ctrl+Alt+F*

Can you open the quickstart window (Alt-F2)? Then type 'r' and press enter. Otherwise a simple kill seems to be the best option since the session manager restarts your shell.
Edit: Of course it seems to be a bit unclean, but if the window manager is frozen there is not much that can be cleaned up I think.

Last edited by progandy (2012-08-08 11:56:03)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#7 2012-08-08 11:55:29

ouzmoutous
Member
Registered: 2012-06-15
Posts: 2

Re: How to restart(--replace) gnome-shell Ctrl+Alt+F*

No I can't open the quickstart when frozen.
I will continue to kill it but I will also continue to find how to make the "replace" work just to know why it doesn't work (because when I was on Linux Mint I used to do a "replace" and it worked".
If I find a solution I will post it there in case someone else is intersted in this.
Anyway, thanks.

Offline

Board footer

Powered by FluxBB