This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Custom device action: solid.

Tags: None
(comma "," separated)
wolfi323
Registered Member
Posts
1129
Karma
11
OS

Re: Custom device action: solid.

Thu Sep 21, 2017 2:37 pm
dongtac wrote:I'm trying to make a custom device action in device manager for a script to format removable media storage devices.

Well, there's the "quick usb formatter" ( https://gitorious.org/chakra/quick-usb-formatter ) that seems to do what you want.
It's still KDE4 based though, so the solid action won't show up in Plasma5 unless you copy or symlink the files to the proper location (/usr/share/solid/).

Anyway, its solid action file contains this predicate:
Code: Select all
[Desktop Entry]
Actions=open;
Type=Service
X-KDE-Action-Custom=true
X-KDE-Solid-Predicate=IS StorageAccess

So that ("IS StorageAccess") should work for you too, I suppose...

Note that you have to logout/login for the new rule to work, IIRC.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]