stayradiated/terminal.sexy

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

Opened this issue · 0 comments

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