From Newsgroup: alt.os.linux.debian
On 6/19/24 05:26 PM, Big Al wrote:
I'm playing with MX Linux KDE plasma for the first time.-a-a Never used it.-a I come from Linux Mint
Cinnamon (my sig is still set that way).
Having a ball learning at least, but in Mint I had a script that would use the gio command to modify
a lot of folder icons making navigation somewhat nicer.-a I like the bling.
Anyway, gio produces no errors when attempting to set the icon but doesn't.-a When I use the gio
command to retrieve the icon it shows none.-a-a So I'm guessing in KDE / debian, the backend is not
there do handle whatever Mint does.-a-a I can edit the folders manually and change the icon but that's
a lot of work.
This might be a bit beyond most users, but I'll give it a shot.-a-a TIA.
Short story: MX Linux does not support the same method of storing the folder icon.
I made one and found that it uses kinda the same logic as Windows, creating a .directory file in
every directory that contains the link to the icon. Windows uses desktop.ini
So with a few awks and find and replaces I converted a script to change some 80 folders from:
gio set /home/alan/grive/GIMP metadata::custom-icon file:///home/alan/grive/Grive-Icons/Gimp-2.10.png 2>/dev/null
to:
echo "[Desktop Entry]
Icon=/home/alan/grive/Grive-Icons/Gimp-2.10.png" > /home/alan/grive/GIMP/.directory
The original is a series of one liners, changed into a 2 line command. Worked like a champ. gio
would support spaces in the name if escaped, but that gave me an issue, and it supported shell
scripts too, but that won't work here.
So problem kinda solved. No error checking performed etc, but for the quick and dirty, it works.
--
Linux Mint 21.3, Cinnamon 6.0.4, Kernel 5.15.0-112-generic
Al
--- Synchronet 3.21d-Linux NewsLink 1.2