I have this script (courtesy of code from here):
And this (/home/vasa1/.local/share/kservices5/ServiceMenus/less-bright.desktop):
If I run less-bright.sh from the terminal like this:
less-bright.sh image.png
As expected, I get 5 additional files, image-1.png through image-5.png of decreasing brightness.
However, if I right-click image.png in Dolphin and choose "Reduce Brightness" from the context menu, all I get is just the one additional file, image-1.png. Why is that?
Code:
#!/bin/sh for x do for i in 1 2 3 4 5 do convert -brightness-contrast -${i}0x0 "$x" "${x%.png}-$i.png" done done
Code:
[Desktop Action less-bright] Exec=less-bright.sh %U Name=Reduce Brightness Icon=colorneg [Desktop Entry] Actions=less-bright MimeType=image/png;image/jpeg; ServiceTypes=KonqPopupMenu/Plugin Type=Service X-KDE-Priority=TopLevel
less-bright.sh image.png
As expected, I get 5 additional files, image-1.png through image-5.png of decreasing brightness.
However, if I right-click image.png in Dolphin and choose "Reduce Brightness" from the context menu, all I get is just the one additional file, image-1.png. Why is that?
Comment