2

I need this, because sometimes the Gnome Shell "forgot" all my extensions configurations after a normal reboot/shutdown. And I'don't want reinstall entire system because this.

So I want a script or a command to enable then all during the my session startup (putting in gnome-session-properties) or even a fix for this problem.

I'm using Ubuntu Gnome 13.04 on Gnome Shell 3.8.3 (downgrade, now on v3.6.3.1)

Output of find ~/ \! -user $USER -print:

/home/mediacenter/.cache/dconf
find: `/home/mediacenter/.cache/dconf': Permission denied
/home/mediacenter/.gvfs
find: `/home/mediacenter/.gvfs': Permission denied
Maxwel Leite
  • 2,424

2 Answers2

5

To activate/enable all extensions every time at startup:

  1. Create a folder for your own scripts:

    mkdir ~/bin

  2. Create a script file: gnome-shell-enable-all-extensions.sh:

    nano ~/bin/gnome-shell-enable-all-extensions.sh

    With contents:

    #!/bin/bash sleep 2s # just in case cd ~/.local/share/gnome-shell/extensions array=($(ls -l --time-style=long-iso | egrep '^d' | awk '{print $8}')) # get only the folder names from current path ext_list=$(printf "'%s'," "${array[@]}") # rebuild the string ext_list=${ext_list%,} # Remove the final character of the variable gsettings set org.gnome.shell enabled-extensions "[${ext_list}]"

  3. Setting up permissions for the script file:

    chmod +x ~/bin/gnome-shell-enable-all-extensions.sh

  4. At last, puts the command in startup gnome-session-properties:

    /home/YOUR-USERNAME/bin/gnome-shell-enable-all-extensions.sh

Maxwel Leite
  • 2,424
0

I know it's a bit late but I implemented a solution script in python if the one above don't satisfy you.

https://github.com/loric-/enableGnomeExtensions.py

Hope that the problem will be fixed soon by the way.

Loric
  • 121
  • 3