How to execute Alt + F2 + r + Return (Gnome Shell Reset) through the TerminalHow to restart Gnome-shell, after it became unresponsive/freeze?How to disable the alt-hotkey behavior on gnome terminal?Alt+F2 stopped working in GNOME ShellHow to return back after Alt+Ctrl+EscHow to return to the shell/terminal?Bash shell scripting: how to detect Alt+N keystroke?How do I easily switch between windows rather than applications with Alt+TAB in GNOME Shell?Unresponsive gnome shell after restart using alt+F2 , r , enter

How do the Martian rebels defeat Earth when they're grossly outnumbered and outgunned?

What is the meaning of Text inside of AMS logo

Is it sportsmanlike to waste opponents' time by giving check at the end of the game?

Why did the Bohr Model Successfully calculate some of the energy levels in hydrogen?

What do you call someone whose unmarried partner has died?

Why are Democrats mostly focused on increasing healthcare spending, rarely mentioning any proposals for decreasing the costs of healthcare services?

My name causes an issue with any booking! (names end with MR and MRS)

Which modifier shown in the D&D Beyond character sheet do I add to attack rolls with my longbow?

Is there an existing name for this kind of political system?

An historical mystery : Poincaré’s silence on Lebesgue integral and measure theory?

How to present boolean options along with selecting exactly 1 of them as "primary"?

I'm being blamed for not responding to an email from a client that was directly addressed to coworker

How to make sure there's equal difference in length between lines

Pi to the power y, for small y's

Physical interpretation of complex numbers

What happens when i sign a public key with its private key pair?

Well-known American figure with Roman numerals

When should we use "Got it?" and "Get it?"

VimL/Vimscript: how to access local variable of outer function from its inner function?

What on earth is this small wall-mounted computer?

Hole in PCB due to corrosive reaction?

How to identify a (personal) Canon Sue?

What is a Thanos Word™?

Implement the Max-Pooling operation from Convolutional Neural Networks



How to execute Alt + F2 + r + Return (Gnome Shell Reset) through the Terminal


How to restart Gnome-shell, after it became unresponsive/freeze?How to disable the alt-hotkey behavior on gnome terminal?Alt+F2 stopped working in GNOME ShellHow to return back after Alt+Ctrl+EscHow to return to the shell/terminal?Bash shell scripting: how to detect Alt+N keystroke?How do I easily switch between windows rather than applications with Alt+TAB in GNOME Shell?Unresponsive gnome shell after restart using alt+F2 , r , enter






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









3

















I'm trying to automate the installation of a Gnome Tweaks extension (Dash to Panel) and, at the end, it requires me to restart the Gnome Shell through Alt + F2 + r + Return (I think that Gnome Tweaks requires it too). How would I do it through a bash script?



I've already tried it through a library called xdotool but it won't recognize the final Return (or KP_Enter = numpad return) for some reason.



xdotool key Alt+F2+r+Return 
# `xdotool key "Alt+F2+r" && xdotool key "Return"` won't work either


I've also tried commands like gnome-shell --replace or killall gnome-shell but they either kill gnome shell or give me back a bunch of frigtening warning messages on the terminal telling me that something might have been overwritten. If I try Ctrl + C on the terminal after that, then Gnome Shell is gone for good this time and I have to reset my PC.



What is the proper way of doing this?



The warning messages:



$ gnome-shell -r

current session already has an ibus-daemon.
GNOME Shell-Message: 15:53:28.012: Telepathy is not available, chat integration will be disabled.
Gjs-Message: 15:53:28.122: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1028]: unreachable code after return statement

(gnome-shell:4088): Gjs-CRITICAL **: 15:53:28.145: Object .Gjs_DashToPanel-PreviewMenu (0x559054ff2650), has been already finalized. Impossible to set any property to it.
== Stack trace for context 0x5590534d94c0 ==
#0 0x7ffe2cb772c0 I resource:///org/gnome/gjs/modules/_legacy.js:83 (0x7f1b084b5de0 @ 87)
#1 0x5590538aecd8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/taskbar.js:366 (0x7f1ae4fd0560 @ 93)
#2 0x7ffe2cb77ea0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#3 0x5590538aec38 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panel.js:293 (0x7f1ae4fcb450 @ 410)
#4 0x7ffe2cb78a80 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#5 0x5590538aebb8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:212 (0x7f1ae4fa8de0 @ 69)
#6 0x7ffe2cb79780 b self-hosted:251 (0x7f1b084c4ab0 @ 223)
#7 0x5590538aeb28 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:199 (0x7f1ae4fa8d58 @ 72)
#8 0x7ffe2cb7a550 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#9 0x5590538aea68 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:109 (0x7f1ae4fa82b8 @ 12)
#10 0x5590538ae9b0 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:79 (0x7f1ae4fa81a8 @ 267)
#11 0x5590538ae938 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:55 (0x7f1ae4fa8120 @ 48)
#12 0x7ffe2cb7b860 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#13 0x5590538ae888 i resource:///org/gnome/shell/ui/extensionSystem.js:137 (0x7f1b08259340 @ 554)
#14 0x5590538ae7f0 i resource:///org/gnome/shell/ui/extensionSystem.js:181 (0x7f1b08259450 @ 241)
#15 0x5590538ae770 i resource:///org/gnome/shell/ui/extensionSystem.js:328 (0x7f1b08259b38 @ 13)
#16 0x7ffe2cb7cbf0 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#17 0x5590538ae690 i resource:///org/gnome/shell/misc/extensionUtils.js:191 (0x7f1b0825e2b8 @ 459)
#18 0x7ffe2cb7d860 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#19 0x5590538ae600 i resource:///org/gnome/shell/misc/extensionUtils.js:197 (0x7f1b0825e3c8 @ 28)
#20 0x7ffe2cb7e560 b resource:///org/gnome/shell/misc/fileUtils.js:27 (0x7f1b0825e4d8 @ 323)
#21 0x5590538ae570 i resource:///org/gnome/shell/misc/extensionUtils.js:196 (0x7f1b0825e340 @ 72)
#22 0x7ffe2cb7f1c0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#23 0x5590538ae4e0 i resource:///org/gnome/shell/ui/extensionSystem.js:330 (0x7f1b08259ab0 @ 201)
#24 0x5590538ae460 i resource:///org/gnome/shell/ui/extensionSystem.js:338 (0x7f1b08259bc0 @ 36)
#25 0x5590538ae3e0 i resource:///org/gnome/shell/ui/extensionSystem.js:369 (0x7f1b08259de0 @ 67)
#26 0x5590538ae358 i resource:///org/gnome/shell/ui/extensionSystem.js:377 (0x7f1b08259e68 @ 41)
#27 0x5590538ae2c8 i resource:///org/gnome/shell/ui/main.js:229 (0x7f1b084da340 @ 1152)
#28 0x5590538ae240 i resource:///org/gnome/shell/ui/main.js:133 (0x7f1b084da230 @ 237)
#29 0x5590538ae1c8 i <main>:1 (0x7f1b08486b38 @ 48)

(gnome-shell:4088): Gjs-WARNING **: 15:53:28.384: Some code accessed the property 'getUniqueBusNameSync' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Ubuntu AppIndicators-Message: 15:53:28.385: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.93/StatusNotifierItem
Ubuntu AppIndicators-Message: 15:53:28.388: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/software_update_available
Ubuntu AppIndicators-Message: 15:53:28.391: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/livepatch
GNOME Shell-Message: 15:53:28.453: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files

(gnome-shell:4088): Gjs-WARNING **: 15:53:35.464: Some code accessed the property 'refreshPropertyOnProxy' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.









share|improve this question




























  • gnome-shell --replace or gnome-shell -r should be the right way to do this. Exactly what kind of errors are you seeing after running the command? Please edit your question and add the error messages verbatim.

    – pomsky
    Jul 20 at 18:11












  • Warning messages added. After gnome-shell --replace, should it end the command or should I have to add a & to disown it? Or is it due to my specific warnings?

    – Philippe Fanaro
    Jul 20 at 18:59






  • 1





    Closely related: How to restart Gnome-shell, after it became unresponsive/freeze?

    – wjandrea
    Sep 1 at 18:36

















3

















I'm trying to automate the installation of a Gnome Tweaks extension (Dash to Panel) and, at the end, it requires me to restart the Gnome Shell through Alt + F2 + r + Return (I think that Gnome Tweaks requires it too). How would I do it through a bash script?



I've already tried it through a library called xdotool but it won't recognize the final Return (or KP_Enter = numpad return) for some reason.



xdotool key Alt+F2+r+Return 
# `xdotool key "Alt+F2+r" && xdotool key "Return"` won't work either


I've also tried commands like gnome-shell --replace or killall gnome-shell but they either kill gnome shell or give me back a bunch of frigtening warning messages on the terminal telling me that something might have been overwritten. If I try Ctrl + C on the terminal after that, then Gnome Shell is gone for good this time and I have to reset my PC.



What is the proper way of doing this?



The warning messages:



$ gnome-shell -r

current session already has an ibus-daemon.
GNOME Shell-Message: 15:53:28.012: Telepathy is not available, chat integration will be disabled.
Gjs-Message: 15:53:28.122: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1028]: unreachable code after return statement

(gnome-shell:4088): Gjs-CRITICAL **: 15:53:28.145: Object .Gjs_DashToPanel-PreviewMenu (0x559054ff2650), has been already finalized. Impossible to set any property to it.
== Stack trace for context 0x5590534d94c0 ==
#0 0x7ffe2cb772c0 I resource:///org/gnome/gjs/modules/_legacy.js:83 (0x7f1b084b5de0 @ 87)
#1 0x5590538aecd8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/taskbar.js:366 (0x7f1ae4fd0560 @ 93)
#2 0x7ffe2cb77ea0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#3 0x5590538aec38 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panel.js:293 (0x7f1ae4fcb450 @ 410)
#4 0x7ffe2cb78a80 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#5 0x5590538aebb8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:212 (0x7f1ae4fa8de0 @ 69)
#6 0x7ffe2cb79780 b self-hosted:251 (0x7f1b084c4ab0 @ 223)
#7 0x5590538aeb28 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:199 (0x7f1ae4fa8d58 @ 72)
#8 0x7ffe2cb7a550 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#9 0x5590538aea68 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:109 (0x7f1ae4fa82b8 @ 12)
#10 0x5590538ae9b0 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:79 (0x7f1ae4fa81a8 @ 267)
#11 0x5590538ae938 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:55 (0x7f1ae4fa8120 @ 48)
#12 0x7ffe2cb7b860 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#13 0x5590538ae888 i resource:///org/gnome/shell/ui/extensionSystem.js:137 (0x7f1b08259340 @ 554)
#14 0x5590538ae7f0 i resource:///org/gnome/shell/ui/extensionSystem.js:181 (0x7f1b08259450 @ 241)
#15 0x5590538ae770 i resource:///org/gnome/shell/ui/extensionSystem.js:328 (0x7f1b08259b38 @ 13)
#16 0x7ffe2cb7cbf0 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#17 0x5590538ae690 i resource:///org/gnome/shell/misc/extensionUtils.js:191 (0x7f1b0825e2b8 @ 459)
#18 0x7ffe2cb7d860 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#19 0x5590538ae600 i resource:///org/gnome/shell/misc/extensionUtils.js:197 (0x7f1b0825e3c8 @ 28)
#20 0x7ffe2cb7e560 b resource:///org/gnome/shell/misc/fileUtils.js:27 (0x7f1b0825e4d8 @ 323)
#21 0x5590538ae570 i resource:///org/gnome/shell/misc/extensionUtils.js:196 (0x7f1b0825e340 @ 72)
#22 0x7ffe2cb7f1c0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#23 0x5590538ae4e0 i resource:///org/gnome/shell/ui/extensionSystem.js:330 (0x7f1b08259ab0 @ 201)
#24 0x5590538ae460 i resource:///org/gnome/shell/ui/extensionSystem.js:338 (0x7f1b08259bc0 @ 36)
#25 0x5590538ae3e0 i resource:///org/gnome/shell/ui/extensionSystem.js:369 (0x7f1b08259de0 @ 67)
#26 0x5590538ae358 i resource:///org/gnome/shell/ui/extensionSystem.js:377 (0x7f1b08259e68 @ 41)
#27 0x5590538ae2c8 i resource:///org/gnome/shell/ui/main.js:229 (0x7f1b084da340 @ 1152)
#28 0x5590538ae240 i resource:///org/gnome/shell/ui/main.js:133 (0x7f1b084da230 @ 237)
#29 0x5590538ae1c8 i <main>:1 (0x7f1b08486b38 @ 48)

(gnome-shell:4088): Gjs-WARNING **: 15:53:28.384: Some code accessed the property 'getUniqueBusNameSync' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Ubuntu AppIndicators-Message: 15:53:28.385: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.93/StatusNotifierItem
Ubuntu AppIndicators-Message: 15:53:28.388: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/software_update_available
Ubuntu AppIndicators-Message: 15:53:28.391: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/livepatch
GNOME Shell-Message: 15:53:28.453: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files

(gnome-shell:4088): Gjs-WARNING **: 15:53:35.464: Some code accessed the property 'refreshPropertyOnProxy' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.









share|improve this question




























  • gnome-shell --replace or gnome-shell -r should be the right way to do this. Exactly what kind of errors are you seeing after running the command? Please edit your question and add the error messages verbatim.

    – pomsky
    Jul 20 at 18:11












  • Warning messages added. After gnome-shell --replace, should it end the command or should I have to add a & to disown it? Or is it due to my specific warnings?

    – Philippe Fanaro
    Jul 20 at 18:59






  • 1





    Closely related: How to restart Gnome-shell, after it became unresponsive/freeze?

    – wjandrea
    Sep 1 at 18:36













3












3








3


1






I'm trying to automate the installation of a Gnome Tweaks extension (Dash to Panel) and, at the end, it requires me to restart the Gnome Shell through Alt + F2 + r + Return (I think that Gnome Tweaks requires it too). How would I do it through a bash script?



I've already tried it through a library called xdotool but it won't recognize the final Return (or KP_Enter = numpad return) for some reason.



xdotool key Alt+F2+r+Return 
# `xdotool key "Alt+F2+r" && xdotool key "Return"` won't work either


I've also tried commands like gnome-shell --replace or killall gnome-shell but they either kill gnome shell or give me back a bunch of frigtening warning messages on the terminal telling me that something might have been overwritten. If I try Ctrl + C on the terminal after that, then Gnome Shell is gone for good this time and I have to reset my PC.



What is the proper way of doing this?



The warning messages:



$ gnome-shell -r

current session already has an ibus-daemon.
GNOME Shell-Message: 15:53:28.012: Telepathy is not available, chat integration will be disabled.
Gjs-Message: 15:53:28.122: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1028]: unreachable code after return statement

(gnome-shell:4088): Gjs-CRITICAL **: 15:53:28.145: Object .Gjs_DashToPanel-PreviewMenu (0x559054ff2650), has been already finalized. Impossible to set any property to it.
== Stack trace for context 0x5590534d94c0 ==
#0 0x7ffe2cb772c0 I resource:///org/gnome/gjs/modules/_legacy.js:83 (0x7f1b084b5de0 @ 87)
#1 0x5590538aecd8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/taskbar.js:366 (0x7f1ae4fd0560 @ 93)
#2 0x7ffe2cb77ea0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#3 0x5590538aec38 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panel.js:293 (0x7f1ae4fcb450 @ 410)
#4 0x7ffe2cb78a80 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#5 0x5590538aebb8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:212 (0x7f1ae4fa8de0 @ 69)
#6 0x7ffe2cb79780 b self-hosted:251 (0x7f1b084c4ab0 @ 223)
#7 0x5590538aeb28 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:199 (0x7f1ae4fa8d58 @ 72)
#8 0x7ffe2cb7a550 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#9 0x5590538aea68 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:109 (0x7f1ae4fa82b8 @ 12)
#10 0x5590538ae9b0 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:79 (0x7f1ae4fa81a8 @ 267)
#11 0x5590538ae938 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:55 (0x7f1ae4fa8120 @ 48)
#12 0x7ffe2cb7b860 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#13 0x5590538ae888 i resource:///org/gnome/shell/ui/extensionSystem.js:137 (0x7f1b08259340 @ 554)
#14 0x5590538ae7f0 i resource:///org/gnome/shell/ui/extensionSystem.js:181 (0x7f1b08259450 @ 241)
#15 0x5590538ae770 i resource:///org/gnome/shell/ui/extensionSystem.js:328 (0x7f1b08259b38 @ 13)
#16 0x7ffe2cb7cbf0 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#17 0x5590538ae690 i resource:///org/gnome/shell/misc/extensionUtils.js:191 (0x7f1b0825e2b8 @ 459)
#18 0x7ffe2cb7d860 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#19 0x5590538ae600 i resource:///org/gnome/shell/misc/extensionUtils.js:197 (0x7f1b0825e3c8 @ 28)
#20 0x7ffe2cb7e560 b resource:///org/gnome/shell/misc/fileUtils.js:27 (0x7f1b0825e4d8 @ 323)
#21 0x5590538ae570 i resource:///org/gnome/shell/misc/extensionUtils.js:196 (0x7f1b0825e340 @ 72)
#22 0x7ffe2cb7f1c0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#23 0x5590538ae4e0 i resource:///org/gnome/shell/ui/extensionSystem.js:330 (0x7f1b08259ab0 @ 201)
#24 0x5590538ae460 i resource:///org/gnome/shell/ui/extensionSystem.js:338 (0x7f1b08259bc0 @ 36)
#25 0x5590538ae3e0 i resource:///org/gnome/shell/ui/extensionSystem.js:369 (0x7f1b08259de0 @ 67)
#26 0x5590538ae358 i resource:///org/gnome/shell/ui/extensionSystem.js:377 (0x7f1b08259e68 @ 41)
#27 0x5590538ae2c8 i resource:///org/gnome/shell/ui/main.js:229 (0x7f1b084da340 @ 1152)
#28 0x5590538ae240 i resource:///org/gnome/shell/ui/main.js:133 (0x7f1b084da230 @ 237)
#29 0x5590538ae1c8 i <main>:1 (0x7f1b08486b38 @ 48)

(gnome-shell:4088): Gjs-WARNING **: 15:53:28.384: Some code accessed the property 'getUniqueBusNameSync' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Ubuntu AppIndicators-Message: 15:53:28.385: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.93/StatusNotifierItem
Ubuntu AppIndicators-Message: 15:53:28.388: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/software_update_available
Ubuntu AppIndicators-Message: 15:53:28.391: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/livepatch
GNOME Shell-Message: 15:53:28.453: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files

(gnome-shell:4088): Gjs-WARNING **: 15:53:35.464: Some code accessed the property 'refreshPropertyOnProxy' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.









share|improve this question

















I'm trying to automate the installation of a Gnome Tweaks extension (Dash to Panel) and, at the end, it requires me to restart the Gnome Shell through Alt + F2 + r + Return (I think that Gnome Tweaks requires it too). How would I do it through a bash script?



I've already tried it through a library called xdotool but it won't recognize the final Return (or KP_Enter = numpad return) for some reason.



xdotool key Alt+F2+r+Return 
# `xdotool key "Alt+F2+r" && xdotool key "Return"` won't work either


I've also tried commands like gnome-shell --replace or killall gnome-shell but they either kill gnome shell or give me back a bunch of frigtening warning messages on the terminal telling me that something might have been overwritten. If I try Ctrl + C on the terminal after that, then Gnome Shell is gone for good this time and I have to reset my PC.



What is the proper way of doing this?



The warning messages:



$ gnome-shell -r

current session already has an ibus-daemon.
GNOME Shell-Message: 15:53:28.012: Telepathy is not available, chat integration will be disabled.
Gjs-Message: 15:53:28.122: JS WARNING: [/usr/share/gnome-shell/extensions/ubuntu-dock@ubuntu.com/appIcons.js 1028]: unreachable code after return statement

(gnome-shell:4088): Gjs-CRITICAL **: 15:53:28.145: Object .Gjs_DashToPanel-PreviewMenu (0x559054ff2650), has been already finalized. Impossible to set any property to it.
== Stack trace for context 0x5590534d94c0 ==
#0 0x7ffe2cb772c0 I resource:///org/gnome/gjs/modules/_legacy.js:83 (0x7f1b084b5de0 @ 87)
#1 0x5590538aecd8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/taskbar.js:366 (0x7f1ae4fd0560 @ 93)
#2 0x7ffe2cb77ea0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#3 0x5590538aec38 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panel.js:293 (0x7f1ae4fcb450 @ 410)
#4 0x7ffe2cb78a80 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#5 0x5590538aebb8 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:212 (0x7f1ae4fa8de0 @ 69)
#6 0x7ffe2cb79780 b self-hosted:251 (0x7f1b084c4ab0 @ 223)
#7 0x5590538aeb28 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/panelManager.js:199 (0x7f1ae4fa8d58 @ 72)
#8 0x7ffe2cb7a550 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#9 0x5590538aea68 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:109 (0x7f1ae4fa82b8 @ 12)
#10 0x5590538ae9b0 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:79 (0x7f1ae4fa81a8 @ 267)
#11 0x5590538ae938 i /home/philippe/.local/share/gnome-shell/extensions/dash-to-panel@jderose9.github.com/extension.js:55 (0x7f1ae4fa8120 @ 48)
#12 0x7ffe2cb7b860 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#13 0x5590538ae888 i resource:///org/gnome/shell/ui/extensionSystem.js:137 (0x7f1b08259340 @ 554)
#14 0x5590538ae7f0 i resource:///org/gnome/shell/ui/extensionSystem.js:181 (0x7f1b08259450 @ 241)
#15 0x5590538ae770 i resource:///org/gnome/shell/ui/extensionSystem.js:328 (0x7f1b08259b38 @ 13)
#16 0x7ffe2cb7cbf0 b resource:///org/gnome/gjs/modules/signals.js:128 (0x7f1b084d2230 @ 386)
#17 0x5590538ae690 i resource:///org/gnome/shell/misc/extensionUtils.js:191 (0x7f1b0825e2b8 @ 459)
#18 0x7ffe2cb7d860 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#19 0x5590538ae600 i resource:///org/gnome/shell/misc/extensionUtils.js:197 (0x7f1b0825e3c8 @ 28)
#20 0x7ffe2cb7e560 b resource:///org/gnome/shell/misc/fileUtils.js:27 (0x7f1b0825e4d8 @ 323)
#21 0x5590538ae570 i resource:///org/gnome/shell/misc/extensionUtils.js:196 (0x7f1b0825e340 @ 72)
#22 0x7ffe2cb7f1c0 I resource:///org/gnome/gjs/modules/_legacy.js:82 (0x7f1b084b5de0 @ 71)
#23 0x5590538ae4e0 i resource:///org/gnome/shell/ui/extensionSystem.js:330 (0x7f1b08259ab0 @ 201)
#24 0x5590538ae460 i resource:///org/gnome/shell/ui/extensionSystem.js:338 (0x7f1b08259bc0 @ 36)
#25 0x5590538ae3e0 i resource:///org/gnome/shell/ui/extensionSystem.js:369 (0x7f1b08259de0 @ 67)
#26 0x5590538ae358 i resource:///org/gnome/shell/ui/extensionSystem.js:377 (0x7f1b08259e68 @ 41)
#27 0x5590538ae2c8 i resource:///org/gnome/shell/ui/main.js:229 (0x7f1b084da340 @ 1152)
#28 0x5590538ae240 i resource:///org/gnome/shell/ui/main.js:133 (0x7f1b084da230 @ 237)
#29 0x5590538ae1c8 i <main>:1 (0x7f1b08486b38 @ 48)

(gnome-shell:4088): Gjs-WARNING **: 15:53:28.384: Some code accessed the property 'getUniqueBusNameSync' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
Ubuntu AppIndicators-Message: 15:53:28.385: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.93/StatusNotifierItem
Ubuntu AppIndicators-Message: 15:53:28.388: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/software_update_available
Ubuntu AppIndicators-Message: 15:53:28.391: [AppIndicatorSupport-DEBUG] Registering StatusNotifierItem :1.89/org/ayatana/NotificationItem/livepatch
GNOME Shell-Message: 15:53:28.453: Error looking up permission: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files

(gnome-shell:4088): Gjs-WARNING **: 15:53:35.464: Some code accessed the property 'refreshPropertyOnProxy' on the module 'util'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.






command-line bash shortcut-keys gnome-shell






share|improve this question
















share|improve this question













share|improve this question




share|improve this question








edited Sep 4 at 14:38









Sun Bear

5415 silver badges20 bronze badges




5415 silver badges20 bronze badges










asked Jul 20 at 17:55









Philippe FanaroPhilippe Fanaro

306 bronze badges




306 bronze badges















  • gnome-shell --replace or gnome-shell -r should be the right way to do this. Exactly what kind of errors are you seeing after running the command? Please edit your question and add the error messages verbatim.

    – pomsky
    Jul 20 at 18:11












  • Warning messages added. After gnome-shell --replace, should it end the command or should I have to add a & to disown it? Or is it due to my specific warnings?

    – Philippe Fanaro
    Jul 20 at 18:59






  • 1





    Closely related: How to restart Gnome-shell, after it became unresponsive/freeze?

    – wjandrea
    Sep 1 at 18:36

















  • gnome-shell --replace or gnome-shell -r should be the right way to do this. Exactly what kind of errors are you seeing after running the command? Please edit your question and add the error messages verbatim.

    – pomsky
    Jul 20 at 18:11












  • Warning messages added. After gnome-shell --replace, should it end the command or should I have to add a & to disown it? Or is it due to my specific warnings?

    – Philippe Fanaro
    Jul 20 at 18:59






  • 1





    Closely related: How to restart Gnome-shell, after it became unresponsive/freeze?

    – wjandrea
    Sep 1 at 18:36
















gnome-shell --replace or gnome-shell -r should be the right way to do this. Exactly what kind of errors are you seeing after running the command? Please edit your question and add the error messages verbatim.

– pomsky
Jul 20 at 18:11






gnome-shell --replace or gnome-shell -r should be the right way to do this. Exactly what kind of errors are you seeing after running the command? Please edit your question and add the error messages verbatim.

– pomsky
Jul 20 at 18:11














Warning messages added. After gnome-shell --replace, should it end the command or should I have to add a & to disown it? Or is it due to my specific warnings?

– Philippe Fanaro
Jul 20 at 18:59





Warning messages added. After gnome-shell --replace, should it end the command or should I have to add a & to disown it? Or is it due to my specific warnings?

– Philippe Fanaro
Jul 20 at 18:59




1




1





Closely related: How to restart Gnome-shell, after it became unresponsive/freeze?

– wjandrea
Sep 1 at 18:36





Closely related: How to restart Gnome-shell, after it became unresponsive/freeze?

– wjandrea
Sep 1 at 18:36










1 Answer
1






active

oldest

votes


















4


















Insert some delay before sending Return:



xdotool key "Alt+F2+r" && sleep 0.5 && xdotool key "Return"





share|improve this answer





























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "89"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );














    draft saved

    draft discarded
















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1159737%2fhow-to-execute-alt-f2-r-return-gnome-shell-reset-through-the-terminal%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown


























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4


















    Insert some delay before sending Return:



    xdotool key "Alt+F2+r" && sleep 0.5 && xdotool key "Return"





    share|improve this answer
































      4


















      Insert some delay before sending Return:



      xdotool key "Alt+F2+r" && sleep 0.5 && xdotool key "Return"





      share|improve this answer






























        4














        4










        4









        Insert some delay before sending Return:



        xdotool key "Alt+F2+r" && sleep 0.5 && xdotool key "Return"





        share|improve this answer
















        Insert some delay before sending Return:



        xdotool key "Alt+F2+r" && sleep 0.5 && xdotool key "Return"






        share|improve this answer















        share|improve this answer




        share|improve this answer








        edited Sep 1 at 16:43









        Eliah Kagan

        92.3k25 gold badges253 silver badges406 bronze badges




        92.3k25 gold badges253 silver badges406 bronze badges










        answered Aug 4 at 16:13









        Michael the WMichael the W

        561 bronze badge




        561 bronze badge































            draft saved

            draft discarded















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1159737%2fhow-to-execute-alt-f2-r-return-gnome-shell-reset-through-the-terminal%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown









            Popular posts from this blog

            Tamil (spriik) Luke uk diar | Nawigatjuun

            Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

            Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?