Skip to content
Juha Kukkonen edited this page Mar 27, 2020 · 7 revisions

Loginized is not listing any of themes or theme I want

Theme does not have gnome-shell folder nor gnome-shell.css in it

Desktop did not start after theme change

ZSH shell does not have autocompletion for loginized-cli

Ubuntu users Yaru gnome-shell theme

Loginized is not listing any of themes or theme I want

If there is a case that the application is not listing theme you want. It is because that theme does not have gnome-shell/gnome-shell-theme.gresource in it. Only compiled themes can be currently installed as login theme via Loginized.

To solve this issue without furhter Googling you could follow next few simple steps:

  • Browse to the gnome-shell folder in your theme folder in /usr/share/themes/mytheme/.
  • Make sure that the folder contains gnome-shell.css file.
    • Browse to folder /usr/share/themes/mytheme/gnome-shell/
    • Run following command in terminal # loginized-cli compile .
      • Note the dot (.) end of command! It is necessary as it stands for folder what to compile.
    • Now there should be 2 more files generated in the folder which are gnome-shell-theme.gresource.xml and gnome-shell-theme.gresource
  • Tada! Now when you restart the Loginized application or even run command $ loginized-cli list it should list the theme you just compiled to be available in application.

Of course replace your the mytheme with actual name of the theme.

Theme does not have gnome-shell folder nor gnome-shell.css in it

Not all the themes support gnome-shell theming. Use always such a theme that has support for gnome-shell theming.

Theretically you could use the gtk-3.0 theme to create a gnome-shell theme and try to use it. But after all it might not work and it might cause computer not boot because of broken theme. Always such a scenarios test it first at virtual vm before trying it on your own machine.

Desktop did not start after theme change

If you encounter a case where desktop did not start after changing login theme. All is not lost. You can fix it via command line interface. When you enter to a black sceen you can do following steps to fix the situation.

  • Press Alt + Ctrl + F6 This way you enter tty6 which is command line interface to your computer. That will work as only the theme is broken.
  • Login normally with your credentials
  • Now if you at the beginning took back up of the original gnome-shell-theme.gresource file you can use it. If you changed the theme via Loginized GUI then the gui took backup of the original or the previous gnome-shell-theme.gresource that was there before the GUI had ever opened.
  • Replace the broken /usr/share/gnome-shell/gnome-shell-theme.gresource with either your backup or the backup that Loginized took which is located in /home/user/.config/Loginized/default/gnome-shell-theme.gresource
    • The application name in .config folder might also be lowercase.
  • Once replaced reboot the computer and the desktop should reappear.

ZSH shell does not have autocompletion for loginized-cli

Make sure that your .zshrc file contains following content. The important part of that is lognized's completion is added to fpath before compinit is autoloaded.

# Automatic fpath update for loginized
fpath=(/opt/Loginized/completion $fpath)

autoload -U compinit && compinit

Also command $ rm -f ~/.zcompdump; compinit might come handy if completion is not showing. This will force build zcompdump.

Ubuntu users Yaru gnome-shell theme

Tested on Ubuntu 19.10 Other versions might not work as expected!

Ubuntu packs the themes bit differently to other distros. To use the Yaru theme as login theme with loginized can be archieved quite simply.

$ sudo loginized-cli compile /usr/share/gnome-shell/theme/Yaru
$ sudo cp -r /usr/share/gnome-shell/theme/Yaru /usr/share/themes/Yaru/gnome-shell

With these commands you should be able to have the Yaru theme available in Loginized app. You can test this quite simply with following command $ loginized-cli list or by opening the Loginized app and you should see Yaru option along with others that are installed on your machine.