Not working on ubuntu 20.04.3 iso

Asked by timekeeper40

I want to apply a custom GTK and a custom shell theme (gnome) but I can't find a way to do it.

I download user theme extensions, to be able to change the shell theme.
I download themes from the gnome site and test it on my main machine and they work perfectly.
I put those themes in the /usr/share/themes folder of my custom distro and then I try to update the shell and GTK theme using the correct gsettings command (I try the command on my main machine and it works), but when I boot on the iso themes were not apply by default.

How can I apply them by default ?

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
Cubic PPA
Solved:
Last query:
Last reply:

This question was originally filed as bug #1951694.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

This isn't a bug with Cubic.

Take a look at some of the Answers on the Questions/Answers page:

https://answers.launchpad.net/cubic

Revision history for this message
Cubic PPA (cubic-wizard) said (last edit ):
#2

Here is an example for Ubuntu MATE.

    https://answers.launchpad.net/cubic/+question/692588

Instead of using the gsettigns command, you will need to create a config file named "90_ubuntu-custom.gschema.override". Place this file in /usr/share/glib-2.0/schemas.

Specifically see step # 5 in comment # 6 of Question # 692588 (linked above).

Note that GNOME Shell / Ubuntu uses different gsettings keys, but you probably already know which keys you need to use.

Revision history for this message
timekeeper40 (timekeeper40) said :
#3

Here is a screenshot of the errors happening when I run your script for extensions.

root@cubic:~# ./install-gnome-shell-extension.py 19
./install-gnome-shell-extension.py: line 48:
Install the specified gnome shell extension.

Run this program as root or using sudo.

Example:
$ sudo ./install-gnome-shell-extension 307

Args:
    extension_id (int): The extension number.

Returns:
    None
: No such file or directory
./install-gnome-shell-extension.py: line 50: import: command not found
./install-gnome-shell-extension.py: line 51: import: command not found
./install-gnome-shell-extension.py: line 52: import: command not found
./install-gnome-shell-extension.py: line 53: import: command not found
./install-gnome-shell-extension.py: line 54: import: command not found
./install-gnome-shell-extension.py: line 55: import: command not found
./install-gnome-shell-extension.py: line 56: import: command not found
./install-gnome-shell-extension.py: line 57: import: command not found
./install-gnome-shell-extension.py: line 58: import: command not found
./install-gnome-shell-extension.py: line 70: EXTENSION_INFORMATION_URL_TEMPLATE: command not found
./install-gnome-shell-extension.py: line 71: EXTENSION_DOWNLOAD_URL_TEMPLATE: command not found
./install-gnome-shell-extension.py: line 72: EXTENSION_DIRECTORY_TEMPLATE: command not found
./install-gnome-shell-extension.py: line 83: try:: command not found
./install-gnome-shell-extension.py: line 84: syntax error near unexpected token `('
./install-gnome-shell-extension.py: line 84: ` extension_id = int(sys.argv[1])'

Revision history for this message
Cubic PPA (cubic-wizard) said :
#4
Revision history for this message
Best Cubic PPA (cubic-wizard) said :
#5

The script is a python program.
Do you have Python installed in your custom OS?

Python should just work, but if you need to specify that this should be run as a python program, you might try executing as follows:

    $ python3 ./install-gnome-shell-extension.py 19

Also, you don't need to use my script..

You can manually extract your extension to /usr/share/gnome-shell/extensions. This will install your extension as a "system" extension, and it will be available for all users. (Each user will not be able to delete the extension, but they can turn it on/off or change settings).

Otherwise, if you copy the extension files to /etc/skel/.local/share/gnome-shell/extensions, they will be installed as local extensions for each user. (And each user will be able to delete or update the extension).

Revision history for this message
timekeeper40 (timekeeper40) said :
#6

Yes, that worked thanks. No errors this time and it said it installed in the /usr/share/gnome-shell/extensions/