Bug 276016

Summary: Provide configure option to hide "remove download photos with gwenview" action in device notifier
Product: [Applications] systemsettings Reporter: Joe <josephj>
Component: kcm_deviceautomounterAssignee: Torrie Fischer <tdfischer>
Status: CONFIRMED ---    
Severity: wishlist CC: cfeck, chaofeng111, g11072813, illumilore, lueck, markhkamp, miroslav.valnicek, nate, samrog131, vleett
Priority: NOR Keywords: usability
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Research on where solid stuff is on my system
Where solid stuff is on my system (corrected)

Description Joe 2011-06-19 04:41:28 UTC
Version:           unspecified (using KDE 4.4.5) 
OS:                Linux

When I plug in a usb drive or flash drive, the device notifier offers me two options - open with file manager and download photos with gwenview.  I never want the second option and want to delete it - so it just opens with dolphin without an extra step.

System Settings will not allow that action to be deleted - either for my user or for all users.  To me, this is a deficiency if not a bug.

Most of my external drives don't even have any photos on them.

This issue is new with kubuntu lucid.  It was not present in karmic or earlier.

Reproducible: Always

Steps to Reproduce:
Just plug in any usb HDD or flash drive and hover over it's entry in the device notifier pop up.

Actual Results:  
Device Notifier show two options
Download Photos with gwenview
Open with File manager

Expected Results:  
Expected just the file manager option to appear.

Or, even better, an option (or direct action) just to mount the drive.

Some people probably like it the way it is.  But, I should be able to configure it to work without the gwenview option.

It would be really cool to have an option (again configurable) that would just mount the device and do nothing else.  Usually, I already have dolphin open on  another desktop or window.  Or, I just want to start kphotoalbum or amarok which I have configured to use data on the external drive, so all I need is for the drive to be mounted before I invoke them.
Comment 1 Burkhard Lück 2011-06-20 07:55:50 UTC
There should be a way to hide unwanted options solid actions on a per user basis, similar to the K-menu.
Comment 2 Joe 2011-12-26 03:50:05 UTC
As a work-around, I found (with help) that I could delete the gwenview entry from
/usr/share/kde4/apps/solid/actions

That worked for quite awhile, but it just came back "by itself" and I had to do it again.

While this works, it is *not* a solution because:
1) It came back
2) I had to have sudo permission to do it and enough experience to be willing to alter things at the system level - i.e. not a typical end user.
3) It would have affected all users on my system if there had been any others besides me
Comment 3 Mark Haferkamp 2012-11-03 21:36:23 UTC
This bug is still present as of today. I'm using fully updated Chakra Linux with KDE 4.9.2.
Comment 4 Joe 2013-02-06 18:08:32 UTC
I have since noticed that clicking on the tiny icon on the right end of the notifier entry for the device does just mount the device without doing anything else.  I still would like to be able to remove the gwenview option through the configuration menus.
Comment 5 Burkhard Lück 2013-02-07 03:58:07 UTC
*** Bug 314569 has been marked as a duplicate of this bug. ***
Comment 6 ttrovo 2015-02-24 18:06:22 UTC
This bug is still present as of today, at least in KDE4 branch.
Gwenview's shortcut is a very annoying thing.
Comment 7 noric 2016-03-15 15:39:47 UTC
Still present in KDE 4.14.2
Comment 8 Joe 2016-03-15 23:52:29 UTC
Isn't 5 years enough time to at least get a response from the KDE developers on this issue?

I have used KDE forever (decades), but I don't usually recommend it to others because I usually don't feel that anyone is even listening to me when I have an issue or a request.

I have long since realized that the way I do things and what I like is is somewhat unique to me and I don't expect others to agree with my views, but I do expect to be met with more than a wall of silence.
Comment 9 Chao Feng 2016-03-17 05:38:31 UTC
Joe, 

Sorry for your frustration. The silence usually means this issue is considered as low priority. It is just wishlist. There are lots more severe bugs and crash popup while KDE development team is always small.

After above excuse, I myself do not have enough time to add configuration for this wishlist for now. But I will come back later if I do have time.
Comment 10 Rog131 2016-03-17 11:12:33 UTC
Meanwhile - A workaround to disable unwanted solid/device actions

The KDE is checking the users home directory and using the desktop files from the home before using the system desktop files.

At this the /usr/share/solid/actions/ directory has a solid-action.desktop file. 

1) Locate solid/actions directory
$ locate solid/actions

2) Make a solid/actions directory to home directory
$ mkdir -p ~/.local/share/solid/actions/

3) Make an empty desktop file to the home solid/actions
touch ~/.local/share/solid/actions/solid-action.desktop
Comment 11 Rog131 2016-03-17 11:24:40 UTC
This wish/bug report has filed against the kcm_deviceautomounter and assigned to Torrie Fischer. 

I think that an alternative (better ?) would be the kcm_solid-actions (solid device actions configuration module / solid device actions editor) current maintainer seems to the Ben Cooksley.

Maintainer information is from KDE System Settings > Device Actions > Help > About solid device actions editor; command: kcmshell5 solid-actions.
Comment 12 Joe 2016-03-17 23:32:00 UTC
Created attachment 97953 [details]
Research on where solid stuff is on my system
Comment 13 Joe 2016-03-17 23:34:42 UTC
(In reply to Rog131 from comment #10)
> Meanwhile - A workaround to disable unwanted solid/device actions
> 
> The KDE is checking the users home directory and using the desktop files
> from the home before using the system desktop files.
> 
> At this the /usr/share/solid/actions/ directory has a solid-action.desktop
> file. 
> 
> 1) Locate solid/actions directory
> $ locate solid/actions
> 
> 2) Make a solid/actions directory to home directory
> $ mkdir -p ~/.local/share/solid/actions/
> 
> 3) Make an empty desktop file to the home solid/actions
> touch ~/.local/share/solid/actions/solid-action.desktop

Tried that. No effect, but it sent me down a rabbit hole where I found a bunch of stuff  that almost made sense, but not enough to act on. It was too long to paste so I added it as an attachment.
Comment 14 Joe 2016-03-17 23:41:44 UTC
Created attachment 97954 [details]
Where solid stuff is on my system (corrected)
Comment 15 Joe 2016-03-17 23:46:00 UTC
(In reply to Joe from comment #12)
> Created attachment 97953 [details]
> Research on where solid stuff is on my system

Got garbage in this somehow. Don't know how to delete it. Next one is good. Sorry.
Comment 16 Rog131 2016-03-18 09:59:33 UTC
With the KDE4 - Desktop: KDE 4.14.2 Distro: Debian 8.3 jessie


When plug-in a usb stick there are options to
- Download Photo with Gwenview
- Open with File Manager
Image: http://i.imgur.com/KAFtkD6.png


1) Solid actions are at:
$ locate solid/actions
/usr/share/kde4/apps/solid/actions

2) Prefix in $HOME used to write files is:
$ kde4-config --localprefix
/home/rog131/.kde/
=> Path to solid actions at home:  /home/rog131/.kde/share/apps/solid/actions

3) Making solid/actions directory to home directory
$ mkdir -p ~/.kde/share/apps/solid/actions
Alternative is to use the Device Actions Editor and make a test/new /Add) action. It will create a correct path.

4) Making an empty desktop file to the home solid/actions
touch ~/.kde/share/apps/solid/actions/gwenview_importer.desktop


Testing - When plug-in a usb stick there are options to:
- Open with File Manager
Image: http://i.imgur.com/pyWl0eq.png
Comment 17 Rog131 2016-03-18 10:21:50 UTC
Sorry for the inconvenience - Trying again with the KF5
With the KF5 - Desktop: KDE Plasma 5.5.5 Distro: Arch Linux

When dropping a CD to the player there are options to
- Open with the VLC
- Open with the QMPlay2
- Open With File Manager
Image: http://i.imgur.com/3otOD2m.png

1) Solid actions are at:
$  locate solid/actions
/usr/share/apps/solid/actions

2) The KDE (KF5) is following XDG Base Directory Specification: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
'$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.'

At here the local solid actions are at: /home/rog131/.local/share/solid/actions
Alternative is to use the Device Actions Editor and make a test/new  (Add) action. It will create the correct path.

Making solid/actions directory to home directory
$ mkdir -p ~/.local/share/solid/actions

3) Making an empty desktop file to the home solid/actions
$ touch ~/.local/share/solid/actions/vlc-opencda.desktop


Testing - When dropping a CD to the player there are options to
- Open with the QMPlay2
- Open With File Manager
Image: http://i.imgur.com/e43h7k6.png
Comment 18 Joe 2016-03-18 20:03:51 UTC
@Rog131 - Thanks a lot!

It finally works! Also great that you included the KDE 5 solution as I will be upgrading soon.

I'm posting about this on the KPhotoAlbum list. People on other photo apps will probably appreciate this as well.

The nice thing about this solution is that it's done in the user directory where it should not be affected by upgrades, etc. - at least until KDE 6 or whatever else big comes along.