You are not logged in.
Hello,
I went through the appropriate sections in the wiki and put what seemed the most relevant parts of doing basic system maintenance together in a script.
It seems to work fine but, could you please tell me if it's a good way of doing it? I plan to use it every couple of weeks or so.
#!/bin/bash
sudo pacman -Sc
paccache -ruk0
./rmshit
find . -xtype l
sudo pacman -Rns $(pacman -Qtdq)* ./rmshit is this.
mc
Offline
There was a glitch.
After a system restart, it notices I logged in with a new language and asks whether to rename the folders in the Home directory (does not say what the new language is). I answered 'no' and got duplicate Home directories as icons on the desktop (Documents, Downloads, Music..).
I found this Ubuntu bug (I'm also using Gnome) and renamed ~/.config/user-dirs.dirs and ~/.config/user-dirs.locale (which just had the letter "C" in it). Another restart and the icons are gone.
What in the script made the language change!?
Offline
Either the pacman -Sc or the paccache are redundant, pacman -Sc will clear out the same packages. I'd move the pacman -Rns call to the start, otherwise your cache will still contain packages from that list (unless you want to keep it that way in order to quickly reinstall something that was erroneously deleted) I personally wouldn't run that .rmshit, caches exist for a reason, however the potentially perf benefits might be negligible on an SSD.
Other than that, nothing inherently harmful, so yeah you could do that.
Offline
Thanks V1del. Removing paccache and .rmshit. The system is on a HDD but I have limited space (in an OCD sorta way), which is why I included .rmshit. It didn't find much, though so I guess I can skip it.
Offline
I'm not quite sure what you are trying to achieve with your XDG user directories—what's the content of your ~/.config/user-dirs.dirs and ~/.config/user-dirs.locale?
Also, some comments on the "shittyfiles" array (assuming you have correctly set the XDG basedir variables):
.gconf: Gconf respects the XDG variables, not sure why you still have that (also not sure where .gconfd comes from)
.gstreamer-0.10: I'm quite positive that the corresponding packages can be replaced by the gst-plugins-... packages
.QtWebEngineProcess and .qutebrowser: qutebrowser respects the XDG variables, not sure why you still have that
.npm: Can be made to respect the XDG variables by setting the NPM_CONFIG_USERCONFIG variable.
.dbus: D-Bus respects the XDG variables, not sure why you still have that
Desktop: Default location if XDG_DESKTOP_DIR is not set in user-dirs.dirs (see above).
.local/share/recently-used.xbel: What's wrong with this?
.local/share/gegl-0.2: What's wrong with this?
It's just that I see no point in automating the removal of those directories/files, as they shouldn't exist in the first place.
--edit: I just saw that it's not you who wrote that script. Sorry for the confusion.
Last edited by ayekat (2017-09-05 10:07:48)
Offline