Thought I'd share...
Close the affected apps first.
For copy & paste:
for d in `find /home/nemo/.local/share/harbour-* -mindepth 1 -maxdepth 1 \! -newer /`; do dir=`dirname $d`; name=`basename $dir`; echo rm -rf $dir/$name; echo mkdir $dir/$name; echo mv $d $dir/$name/; done
Verify that it prints out the right things to do, for instance
rm -rf /home/nemo/.local/share/harbour-tidings/harbour-tidings
mkdir /home/nemo/.local/share/harbour-tidings/harbour-tidings
mv /home/nemo/.local/share/harbour-tidings/QML /home/nemo/.local/share/harbour-tidings/harbour-tidings/
rm -rf /home/nemo/.local/share/harbour-tinytodo/harbour-tinytodo
mkdir /home/nemo/.local/share/harbour-tinytodo/harbour-tinytodo
mv /home/nemo/.local/share/harbour-tinytodo/QML /home/nemo/.local/share/harbour-tinytodo/harbour-tinytodo/
rm -rf /home/nemo/.local/share/harbour-webcat/harbour-webcat
mkdir /home/nemo/.local/share/harbour-webcat/harbour-webcat
mv /home/nemo/.local/share/harbour-webcat/QML /home/nemo/.local/share/harbour-webcat/harbour-webcat/
rm -rf /home/nemo/.local/share/harbour-webcat/harbour-webcat
mkdir /home/nemo/.local/share/harbour-webcat/harbour-webcat
mv /home/nemo/.local/share/harbour-webcat/.QtWebKit /home/nemo/.local/share/harbour-webcat/harbour-webcat/
Then load the gun by removing the three "echo".
for d in `find /home/nemo/.local/share/harbour-* -mindepth 1 -maxdepth 1 \! -newer /`; do dir=`dirname $d`; name=`basename $dir`; rm -rf $dir/$name; mkdir $dir/$name; mv $d $dir/$name/; done
↧