Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 6294  / 1 Year ago, wed, march 29, 2023, 2:15:46

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

More From » gnome

 Answers
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



[#29192] Wednesday, March 29, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
admin

Total Points: 459
Total Questions: 112
Total Answers: 109

Location: Equatorial Guinea
Member since Sun, Feb 14, 2021
3 Years ago
admin questions
Wed, Aug 24, 22, 07:25, 2 Years ago
Wed, Mar 2, 22, 07:09, 2 Years ago
Thu, May 13, 21, 00:32, 3 Years ago
Mon, Jan 17, 22, 14:49, 2 Years ago
;