Gogh icon indicating copy to clipboard operation
Gogh copied to clipboard

Not Working on Ubuntu

Open rahilwazir opened this issue 8 years ago • 40 comments

Same case as #40, but I'm on Ubuntu. Even created a new separate profile didn't help.

Ubuntu: 16.04

rahilwazir avatar Jun 17 '16 07:06 rahilwazir

Yeah I just installed in Ubuntu 16.04, and I'm having an issue as well. I successfully changed the color theme when I installed using this method: $ wget -O xt http://git.io/v3D4o && chmod +x xt && ./xt && rm xt But when I installed the script for changing between themes it doesn't change the theme after executing.

bmreilly avatar Jun 18 '16 23:06 bmreilly

ok, gonna check

Mgldvd avatar Jun 20 '16 15:06 Mgldvd

Its creating new profiles in gnome terminal ubuntu gnome 16.04 it will change theme when we change profile screenshot 2016-06-24 00 49 56

shreyasmm avatar Jun 23 '16 19:06 shreyasmm

No luck on Xenial based Mint 18 either. No error just does nothing.

atomi avatar Jun 28 '16 18:06 atomi

I guess the solution is here but i can't figure out. https://github.com/Anthony25/gnome-terminal-colors-solarized

Mgldvd avatar Jun 28 '16 20:06 Mgldvd

@Mayccoll Can you explain?

rahilwazir avatar Jun 29 '16 06:06 rahilwazir

@rahilwazir gnome-terminal-colors-solarized is working and change the color scheme. I'm reviewing the code to see what approach they are using.

Mgldvd avatar Jun 29 '16 15:06 Mgldvd

restarting the terminal (i had one single session at that time) seemed to help in my case. no additional profile creation was needed. still, restarting all sessions in order to apply the theme is not really acceptable

sferra avatar Jul 05 '16 07:07 sferra

@sferra You sure it worked on Ubuntu 16.04? I restarted all terminal sessions but didn't help

rahilwazir avatar Jul 05 '16 07:07 rahilwazir

yes, i'm sure:

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"

it's the ubuntu-gome flavor though. i also had a single terminal windows/tab open at the time

sferra avatar Jul 05 '16 07:07 sferra

i withdraw my statement about "only" having to restart the terminal. new terminal profiles were created - all called "Default", which is not very helpful - with different color settings. i'm not sure how the new profile got selected because i didn't manually do that.

i'm sorry about the confusion

sferra avatar Jul 05 '16 08:07 sferra

Installing dconf-cli solves the problem partially, it creates profiles which must be changed manually. #44

sudo apt install dconf-cli 

screenshot from 2016-07-08 11-21-11

Mgldvd avatar Jul 08 '16 16:07 Mgldvd

Same here not working on ubuntu 14.04 (elementary freya)

mehdi-alouane avatar Jul 10 '16 14:07 mehdi-alouane

Is this tool working in some OS? As far I can see it's not

golinmarq avatar Jul 16 '16 04:07 golinmarq

@golinmarq ist is working, but maybe not exactly as one may expect: you have to manually choose one of the profiles it creates in order to change the terminal appearance.

sferra avatar Jul 16 '16 12:07 sferra

Started working after installing dconf-cli but the problem of multiple Default profiles haunts me also.

joelhoisko avatar Sep 09 '16 11:09 joelhoisko

Installing dconf-cli on linux mint 18 makes it work correctly but on ubuntu MATE 16.04 doesn't even create multiple Default profiles.

nickdex avatar Oct 23 '16 16:10 nickdex

Maybe if change the "Default" for the theme name would be nice in the end. Create the profile and change to it after.

oxydron avatar May 26 '17 13:05 oxydron

Neither works with Ubuntu Gnome 17.04

fulopattila122 avatar Jun 26 '17 09:06 fulopattila122

Works on vanilla Ubuntu 17.04.

Just reporting so there can be some datapoints :+1:

selfup avatar Jun 26 '17 16:06 selfup

Started to work after I've added a custom Profile manually. Need further tests to clarify if it actually correlates, but this seems to be related.

fulopattila122 avatar Jun 26 '17 18:06 fulopattila122

Edit: I used Konsole, my bad Dx

Ubuntu 16.04, KDE/Plasma env (Maybe Kubuntu?)

Problem: Does not seem to create profiles or change color settings for the profile.

Steps taken to solve problem: Created new profile, problem persists Rebooting

himrasmussen avatar Jul 19 '17 20:07 himrasmussen

Working on Ubuntu 16.04 on gnome-terminal (adds a new profile after used). @himrasmussen are you using Konsole or gnome-terminal?

oxydron avatar Jul 27 '17 20:07 oxydron

@oxydron yeah used Konsole. On Gnome-terminal it works. :)

himrasmussen avatar Jul 27 '17 20:07 himrasmussen

@himrasmussen this is sort of a problem. Part of the script verify which terminal you are using and to my knowledge it only considers gnome-terminal and patheon-terminal

oxydron avatar Aug 25 '17 14:08 oxydron

Not working on my end either (16.04). I can get the theme selection choice during the install but nothing happens. I also had 2 profiles and it deleted them. I tried again (creating a dummy profile, running your script) and it deleted my profiles again... It only leaves 1 of them (Default). And it's not the colors I asked...

jonapich avatar Sep 19 '17 13:09 jonapich

It works for me and probably should for you ($ uname --all Linux eos 4.4.0-96-generic #119~14.04.1-Ubuntu SMP Wed Sep 13 08:40:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux or if put it simple my current distro is Elementary OS 0.3.2 Freya)

It's kinda long and ridiculously redundant but bear with me: CHECK YOUR VERSION OF A TERMINAL (in my case it is 3.6.2)

$ gnome-terminal --version
GNOME Terminal 3.6.2
GO TO THIS DIRECTORY
linux@eos ~/.gconf/apps/gnome-terminal
CHANGE YOUR CORRESPONDING FILE (%gconf.xml ) ACCORDINGLY (if it is not present create it)
$ cat %gconf.xml 
<?xml version="1.0"?>
<gconf>
	<entry name="profile_list" mtime="1507404014" type="list" ltype="string">
		<li type="string">
			<stringvalue>Default</stringvalue>
		</li>
	</entry>
</gconf>
THERE ARE ONLY FILES YOU ARE INTERESTING IN
linux@eos ~/.gconf/apps/gnome-terminal
$ tree profiles/
profiles/
├── Default
│   └── %gconf.xml
└── %gconf.xml

1 directory, 2 files
linux@eos ~/.gconf/apps/gnome-terminal
CHANGE YOUR CORRESPONDING FILE ACCORDINGLY (IT SHOULD BE EMPTY)
$ cat profiles/%gconf.xml 
linux@eos ~/.gconf/apps/gnome-terminal
CHANGE YOUR CORRESPONDING FILE ACCORDINGLY
$ cat profiles/Default/%gconf.xml 
<?xml version="1.0"?>
<gconf>
	<entry name="cursor_shape" mtime="1507441105" type="string">
		<stringvalue>block</stringvalue>
	</entry>
	<entry name="scroll_on_output" mtime="1507441573" type="bool" value="false"/>
	<entry name="allow_bold" mtime="1507441384" type="bool" value="true"/>
	<entry name="font" mtime="1507441779" type="string">
		<stringvalue>Hack 9</stringvalue>
	</entry>
	<entry name="use_system_font" mtime="1507441779" type="bool" value="false"/>
	<entry name="default_show_menubar" mtime="1507441779" type="bool" value="false"/>
	<entry name="scroll_on_keystroke" mtime="1507441779" type="bool" value="false"/>
	<entry name="scrollbar_position" mtime="1507441779" type="string">
		<stringvalue>hidden</stringvalue>
	</entry>
	<entry name="background_darkness" mtime="1507441779" type="float" value="1"/>
	<entry name="background_type" mtime="1507441444" type="string">
		<stringvalue>solid</stringvalue>
	</entry>
	<entry name="use_theme_colors" mtime="1507441779" type="bool" value="false"/>
	<entry name="use_custom_command" mtime="1507438954" type="bool" value="false"/>
	<entry name="palette" mtime="1507441779" type="string">
		<stringvalue>#2E2E34343636:#CCCC00000000:#4E4E9A9A0606:#C4C4A0A00000:#34346565A4A4:#757550507B7B:#060698209A9A:#D3D3D7D7CFCF:#555557575353:#EFEF29292929:#8A8AE2E23434:#FCFCE9E94F4F:#72729F9FCFCF:#ADAD7F7FA8A8:#3434E2E2E2E2:#EEEEEEEEECEC</stringvalue>
	</entry>
	<entry name="alternate_screen_scroll" mtime="1507441636" type="bool" value="false"/>
	<entry name="background_color" mtime="1507441779" type="string">
		<stringvalue>#DEDEDEDEDEDE</stringvalue>
	</entry>
	<entry name="visible_name" mtime="1507441779" type="string">
		<stringvalue>Default</stringvalue>
	</entry>
	<entry name="bold_color" mtime="1507441779" type="string">
		<stringvalue>#000000000000</stringvalue>
	</entry>
	<entry name="foreground_color" mtime="1507441779" type="string">
		<stringvalue>#2E2E34343636</stringvalue>
	</entry>
</gconf>
linux@eos ~/.gconf/apps/gnome-terminal
MAKE SURE TO INSTALL dconf-cli invoking this command down below
sudo apt install dconf-cli
GO TO THEMES (in your browser)
[https://github.com/Mayccoll/Gogh/blob/master/content/themes.md](url)
PICK THIS ONE (Solarized-light)
INSTALL IT
linux@eos ~/.gconf/apps/gnome-terminal
$ wget -O xt  https://git.io/v5mXi && chmod +x xt && ./xt && rm xt
--2017-10-08 09:19:33--  https://git.io/v5mXi
Resolving git.io (git.io)... 50.17.192.147, 23.23.241.244, 50.19.252.69, ...
Connecting to git.io (git.io)|50.17.192.147|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/Mayccoll/Gogh/master/themes/solarized-light.sh [following]
--2017-10-08 09:19:49--  https://raw.githubusercontent.com/Mayccoll/Gogh/master/themes/solarized-light.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.112.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.112.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1964 (1.9K) [text/plain]
Saving to: ‘xt’

100%[=====================================================>] 1,964       --.-K/s   in 0s      

2017-10-08 09:19:54 (8.34 MB/s) - ‘xt’ saved [1964/1964]


████████████████████████████████████████
████████████████████████████████████████

--2017-10-08 09:19:54--  https://raw.githubusercontent.com/Mayccoll/Gogh/master/apply-colors.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 

AT THIS POINT THE NEW THEME IS INSTALLED BUT YOUR Default theme is gone GO TO YOUR PROFILES (gnome-terminal menu>edit>profiles) CREATE A NEW PROFILE AND NAME IT Default CLOSE YOUR TERMINAL OPEN TERMINAL CLICK ON PROFILES IN ORDER TO CHOOSE THE WISHED THEME APPRECIATE IT ^^ That is it. PS. I've deliberately shown whole process instead of pointing on needed steps briefly.

dagolinuxoid avatar Oct 08 '17 06:10 dagolinuxoid

For Linux Mint the work around is just cloning the repo and running f.e. themes/solarized-dark.sh. This will create a named profile. This seems enough to make it persistent. When I run apply-colors it creates the Default profile with broken colors.

Another work around that worked even better was uninstalling dconf-cli, I installed it because it was stated in the readme.md but it seems Mint doesn't use dconf, at least not at version 17.3.

The bug happens at the apply-colors.sh. After a user installed dconf-cli, the script will check if it needs to apply the settings with dconf. It wont find any profiles there because some distros or configurations don't use dconf for this and skip to the else part, where an exit 1 triggers since this commit: https://github.com/Mayccoll/Gogh/commit/84e96d9771e63697c632eac4d4172020f1a225de So simply put, the script will never reach the working gconf (legacy) code unless you don't have dconf installed at all.

Just thought I'd share my findings..

guidobit avatar Mar 30 '18 14:03 guidobit

On Ubuntu 18.04 LTS there were no profiles created. While trying to install other Gnome terminal profiles I stumbled upon the sugestion to install dconf-tools Did that and afterwards it worked.

alexzaharia24 avatar Aug 15 '18 16:08 alexzaharia24

Ubuntu 18.04, fresh install;

Creating a new profile did at least help with installation. I just had to find the theme's SH file and use it to install. That's because the default install wasn't asking for any theme and was installing Freya theme.

I'll check it out when I have the time for a fix though (that's if I remember)

ilgityildirim avatar Sep 07 '18 12:09 ilgityildirim