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

self created device action for usb does not work

Tags: None
(comma "," separated)
hateshark
Registered Member
Posts
6
Karma
0
OS
I would like to start a backup process when a special usb storage (identified by uuid) is plugged in.
I added a new entry at System settings →Removable Storage →Device Actions

The settings are as follows:
All of the contained properties must match
* The device must be of the type Storage Volume
* The device property Uuid must contain a8dac7ae

The command is a path to a script.

The usb storage is mounted autmatically at /media/shark/a8dac7ae-0da4-47e0-a5da-b38b18f2e3ee/.
But the bash script is not being executed. (It already has executable rights.)

Any suggesstions? Should I make a bug report?

My system:
Kubuntu 18.04
KDE Plasma 5.12.6
KDE Frameworks 5.44.0
Qt 5.9.5
User avatar
Rog131
Registered Member
Posts
828
Karma
10
hateshark wrote:I would like to start a backup process when a special usb storage (identified by uuid) is plugged in.
I added a new entry at System settings →Removable Storage →Device Actions

The settings are as follows:
All of the contained properties must match
* The device must be of the type Storage Volume
* The device property Uuid must contain a8dac7ae

The command is a path to a script.

The usb storage is mounted autmatically at /media/shark/a8dac7ae-0da4-47e0-a5da-b38b18f2e3ee/.
But the bash script is not being executed. (It already has executable rights.)

Any suggesstions? Should I make a bug report?

My system:
Kubuntu 18.04
KDE Plasma 5.12.6
KDE Frameworks 5.44.0
Qt 5.9.5


The device action command is executed when the user picks the action from the device notifier pop up.
Image


The 'automatic handling of removable storage media' just mounts the media. It won't execute any device action.
Image


You may want to try: How to run a script when a specific flash-drive is mounted? - https://askubuntu.com/questions/25071/h ... is-mounted


Bookmarks



Who is online

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