Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 579678 - kde-misc/kdiff3 does not install a .desktop file with USE="qt5 -kde"
Summary: kde-misc/kdiff3 does not install a .desktop file with USE="qt5 -kde"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-12 03:28 UTC by BT
Modified: 2017-07-06 01:33 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,6.00 KB, text/plain)
2016-04-12 03:28 UTC, BT
Details
org.kde.kdiff3.desktop.diff (kdiff3.patch,732 bytes, patch)
2016-11-26 21:54 UTC, Andreas Sturmlechner
Details | Diff
kdiff3-0.9.98_p20170110.ebuild (kdiff3-0.9.98_p20170110.ebuild,770 bytes, text/plain)
2017-01-10 00:23 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BT 2016-04-12 03:28:37 UTC
Created attachment 430198 [details]
emerge --info

kde-misc/kdiff3 does not install a .desktop file with USE="qt5 -kde". I had to start KDiff3 from Konsole! I tried using the src-QT4/kdiff3.desktop file from the KDiff3 sources but it did not work. Instead I created the following .desktop file and placed it in ~/.local/share/applications. The icon is supplied by the Breeze icon set that is part of KDE Frameworks/Plasma 5.

[Desktop Entry]
Name=KDiff3
Exec=kdiff3
Icon=kdiff3
Type=Application
Terminal=false
Categories=Qt;Development;
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2016-04-12 07:45:11 UTC
We have packaged a live ebuild in kde overlay for an porting repository to KDE Frameworks 5. Maybe it is fixed there.

https://quickgit.kde.org/?p=scratch%2Fthomasfischer%2Fkdiff3.git&a=shortlog&h=38da4f17ed15fe967cd16bafbe7710b77c8d9a1b
Comment 2 BT 2016-04-12 09:16:02 UTC
I tried the live ebuild from the kde overlay, and it does install a desktop file named org.kde.kdiff3.desktop . However just like the desktop file from the the KDiff3 0.9.98 sources, it does not work, at least with Plasma 5. Although I can make it work if I change the Exec line from:

Exec=kdiff3 %i -caption "%c"

to

Exec=kdiff3 %i "%c"
Comment 3 Andreas Sturmlechner gentoo-dev 2016-04-12 15:28:40 UTC
-caption is indeed breaking startup, it needs to be replaced with -windowtitle upstream.
Comment 4 Andreas Sturmlechner gentoo-dev 2016-04-12 15:30:25 UTC
well, -qwindowtitle
Comment 5 Andreas Sturmlechner gentoo-dev 2016-11-26 21:54:38 UTC
Created attachment 454472 [details, diff]
org.kde.kdiff3.desktop.diff
Comment 7 Andreas Sturmlechner gentoo-dev 2017-01-10 00:23:04 UTC
Created attachment 459424 [details]
kdiff3-0.9.98_p20170110.ebuild

I've created a KF5-based snapshot for testing which contains that fix, from git://anongit.kde.org/scratch/thomasfischer/kdiff3 +refs/heads/kf5
Comment 8 Bernard Cafarelli gentoo-dev 2017-01-17 14:22:46 UTC
(In reply to Andreas Sturmlechner from comment #7)
Andreas, you are a dev now, you can add it to the tree :)
I cannot test it much myself, as I only have qt5 parts installed (no kde around)
Comment 9 Andreas Sturmlechner gentoo-dev 2017-01-20 10:09:36 UTC
Indeed, but I didn't want to bypass you. Anyway, this branch needs more fixing - file dialog URLs are broken, that's a major bug.
Comment 10 Andreas Sturmlechner gentoo-dev 2017-05-06 21:47:28 UTC
I've added KF5-based snapshot kde-misc/kdiff3-0.9.98_p20170219 to tree, please test.
Comment 11 BT 2017-05-07 02:08:04 UTC
No issues discovered. kdiff3 now installs a working desktop file. Thank you.