Groups | Search | Server Info | Login | Register
Groups > alt.os.linux.debian > #10580
| From | Big Al <alan@invalid.com> |
|---|---|
| Newsgroups | alt.os.linux.debian |
| Subject | Re: Folder Icons - using gio cli |
| Date | 2024-06-19 18:20 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <v4vljs$25fph$2@dont-email.me> (permalink) |
| References | <v4vied$25fph$1@dont-email.me> |
On 6/19/24 05:26 PM, Big Al wrote: > I'm playing with MX Linux KDE plasma for the first time. Never used it. 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. I like the bling. > > Anyway, gio produces no errors when attempting to set the icon but doesn't. When I use the gio > command to retrieve the icon it shows none. So I'm guessing in KDE / debian, the backend is not > there do handle whatever Mint does. 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. 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
Back to alt.os.linux.debian | Previous | Next — Previous in thread | Find similar
Folder Icons - using gio cli Big Al <alan@invalid.com> - 2024-06-19 17:26 -0400 Re: Folder Icons - using gio cli Big Al <alan@invalid.com> - 2024-06-19 18:20 -0400
csiph-web