https://bugs.kde.org/show_bug.cgi?id=387961

--- Comment #5 from Stan Towianski <stashu....@gmail.com> ---
I at least figured out how to make it work by creating my own device action
file.
don't know if it matters but only version diff seems to be Qt Version 5.12.6
I did one "no change" edit and it did not mess up my file but I do not know if
editting works yet.

so I think default files must be at: /usr/share/solid/actions
per skierpage I copied one : test-predicate-openinwindow.desktop
to: /home/myuser/.local/share/solid/actions
as: test-predicate-openinwindow-jfp.desktop      (jfp file manager)

------------  test-predicate-openinwindow-jfp.desktop  ---------------------
[Desktop Entry]
X-KDE-Solid-Predicate=[ [ [ StorageVolume.ignored == false AND
StorageVolume.usage == 'FileSystem' ] OR [ IS StorageAccess AND
StorageDrive.driveType == 'Floppy' ] ] OR StorageAccess.ignored == false ]
Type=Service
Actions=open;

[Desktop Action open]
Name=Open with JFileProcessor
Exec=/mypath/programs/jfp-to-use/run.sh "%f"
Icon=/mypath/github/jfileprocessorRest/src/main/resources/icons/jfp.png
---------------------------------------------------


------------  jfp-to-use/run.sh  --------------
#!/bin/bash
cd /mypath/programs/jfp-to-use
java -jar JFileProcessor-1.8.9.war $1


at least this works and the device action file does not get mangled or
disappear.
When I pop in a usb stick
It does show my name, my icon and opens my program for the usb stick path.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to