Fedora-OSTree-Setup-dev / Fedora-OSTree-Setup

Glorified scipt that automates the setup of Fedora Silverblue/Kinoite based on given config file.
GNU General Public License v3.0
7 stars 3 forks source link

Auto-merge Folders (KDE and maybe more) #84

Open boredsquirrel opened 1 year ago

boredsquirrel commented 1 year ago

printf """#!/bin/bash
# fix GUI appstarters wrong location
mv -f ~/.local/share/applications/ons/* ~/.local/share/applications/

# fix downloaded Servicemenus wrong location
mv ~/.local/share/servicemenu-download/* ~/.local/share/kservices5/ServiceMenus/

# fix archived servicemenus
unzip ~/.local/share/kservices5/ServiceMenus/* && rm ~/.local/share/kservices5/ServiceMenus/*.zip
tar -xzvf ~/.local/share/kservices5/ServiceMenus/*.gz && rm ~/.local/share/kservices5/ServiceMenus/*.gz
tar -xjvf ~/.local/share/kservices5/ServiceMenus/*.bz2 && rm ~/.local/share/kservices5/ServiceMenus/*.bz2
tar -xf ~/.local/share/kservices5/ServiceMenus/*.xz && rm ~/.local/share/kservices5/ServiceMenus/*.xz

# move all .desktop files to correct folder
find ~/.local/share/kservices5/ServiceMenus/ -type f -name "*.desktop" -exec mv {} ~/.local/share/kservices5/ServiceMenus/;
""" > ~/.local/bin/cleanup-folders.sh

chmod +x ~/.local/bin/cleanup-folders.sh

printf """ #!/bin/bash
sleep 120

. ~/.local/bin/cleanup-folders.sh""" > ~/.config/autostart/cleanup-folders-run.sh

chmod + ~/.config/autostart/cleanup-folders-run.sh
boredsquirrel commented 1 year ago

KDE is full of weird stuff, this tries to somewhat circumvent it. It is not complete, for example downloaded Dolphin extensions might still need an install or anything else, there is totally no structure so the GUI doesnt work sufficiently.