[KPhotoAlbum] Pesky Device Notifier Option Workaround

Joe josephj at main.nc.us
Fri Mar 18 20:32:32 GMT 2016


For years, KDE's Device Notifier has offered the option to Download 
Photos with Gwenview whenever a USB storage device gets plugged in.

Using KPhotoAlbum, I have never wanted to use this option - especially 
since it is also offered for devices which have no photos on them at all!

There's an editor that allows you to modify such actions, but, in their 
infinite wisdom, the KDE team made the Gwenview option mandatory. It 
can't be deleted.

I filed a bug about this five years ago with no response from the KDE 
team until now. A developer just responded to my note about 5 years 
being enough time to warrant a reply, but said it was still very low 
priority.

However, another poster came up with a proper workaround for both KDE 4 
and 5. It works for me in KDE 4. I haven't tried it in KDE 5 yet.

If you know anyone who uses other photo management software, they may 
appreciate knowing about this as well.

Joe

----

To get rid of Download photos with Gwenview in device notifier

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

KDE5 version:

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


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



More information about the Kphotoalbum mailing list