Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The theme installation script for gnome-terminal breaks when there are no user profiles yet #61

Open
curusarn opened this issue Apr 16, 2020 · 0 comments

Comments

@curusarn
Copy link

I tried to use the gnome-terminal theme installation script on a fresh device and it failed.

I investigated why.

There is no dir for "terminal" in the settings:

❯ dconf list /org/gnome/         
control-center/
desktop/
evolution-data-server/
mutter/
nautilus/
settings-daemon/
shell/

So this command returns nothing:

❯ dconf list /org/gnome/terminal/legacy/profiles:/

Which makes this condition from the script fail:

if [[ -n "$(dconf list /org/gnome/terminal/legacy/profiles:/)" ]]; then

Then the script tries to fallback to the gconf variant (for older Gnome) which also fails:

❯ chmod +x hyper-snazzy.sh && ./hyper-snazzy.sh 
./hyper-snazzy.sh: line 104: gconftool: command not found
./hyper-snazzy.sh: line 104: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found
./hyper-snazzy.sh: line 88: gconftool: command not found

The issue disappears after any user profile is created using gnome-teminal preferences GUI:

❯ dconf list /org/gnome/terminal/legacy/profiles:/
:169458fc-9172-48fb-b2a4-d030c18fb43b/
list

Original issue: yihyunjoon/hyper-snazzy-gnome-terminal#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant