Registered Member
|
i use lockit to lock & unlock folders. I would like to have the folder icon change to red when locked & green when unlocked. Any Help would be appreciated
[Desktop Entry] Type=Service ServiceTypes=KonqPopupMenu/Plugin MimeType=all/all; Actions=lock;unlock; [Desktop Action lock] Name=Lock Icon=object-locked Exec=gksudo "chattr -R +i %U" && notify-send 'Folders Locked'; fi [Desktop Action unlock] Name=Unlock Icon=object-unlocked Exec=gksudo "chattr -R -i %U" && notify-send 'Folders Unlocked'; fi |
Registered Member
|
If you manually set a folder icon it'll create a file called .directory with Icon=icon-name. Eg:
We can use kwriteconfig5 to set a value in an .ini/.desktop like file.
With testing, dolphin will update the icon right away, but an icon on the desktop won't update. We might need to run another command telling plasma to refresh the desktop and/or file a bug report. |
Registered Member
|
Worked perfect! thank you Very Much! |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]