gnome-tweak-tool icon indicating copy to clipboard operation
gnome-tweak-tool copied to clipboard

`No Shell Running` Exception when launching Gnome Tweak Tool (in WSL)

Open Melvin-Abraham opened this issue 4 years ago • 2 comments

I'm using WSL with Ubuntu 18.04 installed. Since I'm interested in opening GUI in WSL, I installed XMing Server in my Windows Machine and set variable DISPLAY accordingly in my Ubuntu WSL. All the GUI applications launch as expected without any issues. Later, to change the shell theme, I installed gnome-shell along with gnome-tweaks. But as and when I launch gnome-tweaks, I get the following exception:

melvin@xyz:~$ gnome-tweaks
WARNING : Shell not installed or running
WARNING : Shell not running
NoneType: None
WARNING : Error detecting shell
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_shell_extensions.py", line 216, in __init__
    raise Exception("Shell not running or DBus service not available")
Exception: Shell not running or DBus service not available

Even my DBus service is working:

melvin@xyz:~$ ps -ef | grep dbus | grep -v grep
melvin      28     1  0 22:56 tty1     00:00:00 dbus-launch --autolaunch=ded84489a5cc43069ac8dbfa9f36e4f1 --binary-syntax --close-stderr
melvin      29     1  0 22:56 ?        00:00:00 /usr/bin/dbus-daemon --syslog-only --fork --print-pid 5 --print-address 7 --session

The other issue is that it does not cause any changes in the shell (may it be fonts, themes, etc.) even after making changes. I tried terminating WSL and starting it again but still, no changes are reflected even though it remembers my previous settings. Please, let me know if there is any way to fix this...

Melvin-Abraham avatar Oct 01 '19 18:10 Melvin-Abraham