Bug 367675 - Incomplete "Exec"-line in digikam-opencamera.desktop
Summary: Incomplete "Exec"-line in digikam-opencamera.desktop
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-CLI (show other bugs)
Version: 5.1.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 14:09 UTC by kramski
Modified: 2017-08-16 10:36 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kramski 2016-08-22 14:09:20 UTC
The device notifier action "Download Photos with digiKam" was not working for me.

To fix this, I had to modify the "Exec"-line in /usr/share/solid/actions/digikam-opencamera.desktop from
        Exec=share/digikam/utils/digikam-camera downloadFromUdi %i
            to
        Exec=/usr/share/digikam/utils/digikam-camera downloadFromUdi %i

Reproducible: Always

Steps to Reproduce:
1. Plug in a camera via USB
2. Choose "Download Photos with digiKam" in device notifier


Actual Results:  
Nothing happens.

Expected Results:  
Digikam's import windows should open.
Comment 1 caulier.gilles 2016-08-22 18:36:09 UTC
This  is a DOWSTREAM problem as in desktop.in file from digiKam source code we have :

[Desktop Action open]
# %f gives StorageAccess.filePath, %d gives Block.device, %i gives UDI
Exec=@digikamhelperdir@/digikam-camera downloadFromUdi %i

@digikamhelperdir@ is replaced at configuration time.

Here under Mageia Linux all work fine with this script.

Report this problem to ArchLinux team

Gilles Caulier
Comment 2 Rex Dieter 2016-08-24 15:30:22 UTC
I see the same problem on fedora, I'll look into it closer...
Comment 3 Rex Dieter 2016-08-24 15:50:59 UTC
so, the problem is in data/hotplug/CMakeLists.txt:
set(digikamhelperdir ${DATA_INSTALL_DIR}/digikam/utils)
this makes an assumption that DATA_INSTALL_DIR is a full (non-relative) path.  Better would be to use:
set(digikamhelperdir ${KDE_INSTALL_FULL_DATADIR}/digikam/utils)
Comment 4 Rex Dieter 2016-08-24 17:52:17 UTC
Git commit 463667c89f3fabcb2daf47ed8e14ad23e84e8cec by Rex Dieter.
Committed on 24/08/2016 at 17:52.
Pushed by rdieter into branch 'master'.

fix digikamhelperdir

Cannot assume DATA_INSTALL_DIR is a fully-qualified path

M  +1    -1    data/hotplug/CMakeLists.txt

http://commits.kde.org/digikam/463667c89f3fabcb2daf47ed8e14ad23e84e8cec