Gogh-Co/Gogh

Doesn't working Debian

Opened this issue ยท 32 comments

Script runs but appears to do nothing. Docs are not detailed on expected results. Terminal colors do not change in current or new terminal. Using Debian 9.

Try to right click inside the console and go to the profiles, maybe there are several "Default" profiles there, each one for each try to change the colors.

addfs commented

Same problem on debian 9. Terminal Gnome 3.22.2
And new Default profiles doesn't created

@addfs In fact, currently for me, when I run the main code (that one that shows you a list of themes), after choosing a theme, it will appear with the correct name on the profiles list.

+1 I have the same issue. could this be an issue with gnome-terminal or dconf-cli?

+1, install seems successful but no additional profiles to chose. Debian 9
screen shot 2017-06-29 at 6 43 51 am

Same issue here. I'm running Debian 9, Gnome Terminal 3.22.2 and dconf-cli 0.26.0-2+b1.

I'm not sure where to start debugging so if you have any hints please say.

Thanks!

any update on this?

I've found a solution for this problem. Go to Preferences > Profiles and create a new profile called Default. I've also chosen it as default for new terminals but I don't know if it's neccessary. Gogh worked after restart.

i'm runing debian 9,gnome terminal 3.22.2,everything went well after runing the shell script but the
profile didn't show,like nothing happened.

It doesn't work for me. Instead of creating a new theme, it removes current profiles. I have tested that by creating a profile called "test". After I've ran the script, selecting handful of themes, the profile Test was deleted and other one "Unnamed" showed up. I do have dconf-cli, and there are no errors from the script output.

more info:
dconf list /org/gnome/terminal/legacy/profiles:/ returns proper list of themes. Yet only one available on the profile chooser is Default unnamed theme.

I am having the same issue on Debian 9 using GNOME Terminal 3.22.2.

Some users linked to this issue and I've tried to debug to get the origin of this problem as described in this post. It looks like a bug in dconf itself which occurs on fresh installed systems or GNOME Terminals which never created a new profile.

Just want to note that I've rewrote my install script. A detailed description can be found in nordtheme/gnome-terminal#13 resolved in PR nordtheme/gnome-terminal#14. It should now work on all distributions when the basic dependencies are installed. The legacy support for GNOME Terminal versions < 3.8 has been removed since the gconf long-time support for most distributions will end this year anyway, next to the fact that there are no distributions that ship with GNOME < 3.8 anymore.
The compatibility with dconf has been improved by using the high-level API of GSettings where ever possible instead.

Had same problem here with Debian Stretch and gnome-terminal 3.22.
I fixed it by manually creating a new profile called 'Default' and then relaunching the Gogh command.
The profile was successfully created but I had the switch profile manually by either right-clicking on the terminal or go in the options.
Hope it helps.

On OpenSUSE I had a similar problem:

Starting from a clean terminal, gogh.sh failed with the following output:

Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /visible_name": ` ' is an invalid character in key/directory names
Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /palette": ` ' is an invalid character in key/directory names
Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /background_color": ` ' is an invalid character in key/directory names
Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /foreground_color": ` ' is an invalid character in key/directory names
Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /bold_color": ` ' is an invalid character in key/directory names
Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /bold_color_same_as_fg": ` ' is an invalid character in key/directory names
Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /use_theme_colors": ` ' is an invalid character in key/directory names
Error setting value: Bad key or directory name: "/apps/gnome-terminal/profiles/Gruvbox-dark /use_theme_background": ` ' is an invalid character in key/directory names

It looks like it's trying to create a terminal profile for a OSX system. My initial profile was named 'Unnamed', and I created a 'new' profile with the name 'Default', and now gogh.sh works without a problem.

In my case, the script didn't work although I recreated a new profil "Default".
I think, gnome-terminal fail to load the profil because the name of the key (= name of the theme) contain a whitespace.

$ gsettings get org.gnome.Terminal.ProfilesList list
['b1dcc9dd-5262-4d8d-a863-c897e6d979b9', 'aaea8d85-3917-4954-a97e-965ef338e11d', 'Molokai ', 'Zenburn ']

After reading the script, I saw that it use uuidgen command so I installed it (apt-get install uuid-runtime) and now the script work correctly.
Now, the key isn't named with the name of the theme but with the generated uuid:

$ gsettings get org.gnome.Terminal.ProfilesList list
['b1dcc9dd-5262-4d8d-a863-c897e6d979b9', '932b6a98-127b-4cf0-9a78-21600ddb9913', '6f14e88f-869f-4da7-8847-0212ffe7c6a2']

I'm on Debian 9.

I had the same problem but as @oxydron said, just right click on profiles worked.

selection_325

Same problem on Debian Sid with Gnome Terminal 3.26.2 and dconf-cli 0.26.1-3. Creating a new profile named "Default" does not help, it just get deleted after the script execute without error messages but the colors do not change and no new profile is available through the right-click menu.

Try dconf reset -f /org/gnome/terminal/legacy/profiles:/ (it will reset all your profiles) and create a new profile manually, then retry launching Gogh.

Same problem here, debian 9 GNOME Terminal 3.22.2

Had the same problem with debian, dconf reset (as @romzie suggested) actually helped after throwing me an error at first. I just did the reset, created a "Default" profile and then executed the script.

m0ne commented

Can confirm, it is not working for me either, on Debian 9, Gnome Terminal 3.26.2. Tried all steps above, including reset and recreating of Default profile.

I was having the same issues as everyone else. What I did to get it to work:

Run to reset your profiles:
dconf reset -f /org/gnome/terminal/legacy/profiles:/

Close your terminal. Re-open the terminal.

Go to Edit ---> Preferences ---> Profiles. Create NEW profile called "Default".

Close the terminal. Re-open the terminal. Confirm "Default" is still listed in your profiles. If it is, run the Gogh script again, and it should work. It did for me, at least.

sui74 commented

Same problem me, debian 9 GNOME Terminal 3.22.2.
but Problem has been resolved.

  1. Run to reset profiles:
    dconf reset -f /org/gnome/terminal/legacy/profiles:/

  2. ''Unname'' Rename profile called "default".

  3. sudo apt install uuid-runtime

  4. wget -O gogh https://git.io/vQgMr && chmod +x gogh && ./gogh && rm gogh

I can change profiles now, hope it helps.

For those that still have issues, I followed @sui74 answer and it did not work. This was because I executed gogh as root beforehand.

How I got it working :

  1. As root, reset profiles :
    dconf reset -f /org/gnome/terminal/legacy/profiles:/

  2. As your user, reset profiles :
    dconf reset -f /org/gnome/terminal/legacy/profiles:/

  3. ''Unname'' Rename profile called "default".

  4. sudo apt install uuid-runtime

  5. wget -O gogh https://git.io/vQgMr && chmod +x gogh && ./gogh && rm gogh

THanks guys!

Same problem me, debian 9 GNOME Terminal 3.22.2.
but Problem has been resolved.

  1. Run to reset profiles:
    dconf reset -f /org/gnome/terminal/legacy/profiles:/
  2. ''Unname'' Rename profile called "default".
  3. sudo apt install uuid-runtime
  4. wget -O gogh https://git.io/vQgMr && chmod +x gogh && ./gogh && rm gogh

I can change profiles now, hope it helps.

Working solution.

The solution provided by sui74 works. Could this be added into the README? I can submit a PR if you don't have the time to deal with this.

Same problem me, debian 9 GNOME Terminal 3.22.2.
but Problem has been resolved.

1. Run to reset profiles:
   dconf reset -f /org/gnome/terminal/legacy/profiles:/

2. ''Unname'' Rename profile called "default".

3. sudo apt install uuid-runtime

4. wget -O gogh https://git.io/vQgMr && chmod +x gogh && ./gogh && rm gogh

I can change profiles now, hope it helps.

Thank you so much. It' working.

The solution provided by mopanku works for me (Debian 11).

Any solutions for Debian 12?

Any solutions for Debian 12?

In my case, i create new profile named 'anything' then set the newest cloned as default

after that, i'm right click on the terminal, profiles > themeName, it's work

note that it doesn't automatically applied though