Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598350 - kde-frameworks/kio-5.26.0: Applications needing a terminal window do not start due to wrong invocation of the Konsole terminal emulator
Summary: kde-frameworks/kio-5.26.0: Applications needing a terminal window do not star...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard: fixed with konsole-16.08.x
Keywords:
Depends on: kde-apps-16.08.3
Blocks:
  Show dependency tree
 
Reported: 2016-10-28 13:31 UTC by Stefan Gast
Modified: 2016-12-18 18:08 UTC (History)
0 users

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


Attachments
New version of kio-5.26.0-fix-desktop-launch.patch (kio-5.26.0-fix-desktop-launch.patch,1.03 KB, patch)
2016-10-28 13:35 UTC, Stefan Gast
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gast 2016-10-28 13:31:35 UTC
In KDE Plasma, applications needing a terminal window like htop or Octave do not start when clicked in the K application launcher, or when the name is typed in KRunner (the one that appears when Alt+F2 is pressed).

Using kioclient5 exec does not work, either, for example:
$ kioclient5 exec /usr/share/applications/htop.desktop
<... Nothing happens ...>

This problem exists with all programs that have Terminal=true in their .desktop file.

Current kde-frameworks/kio-5.26.0-r2 has a patch (files/kio-5.26.0-fix-desktop-launch.patch) that tries to fix this issue. The problem is that Konsole now does not understand the -qwindowtitle option anymore (can be easily checked by using it at the command line). Instead, konsole --help-kde suggests to use the --caption option (with two dashes):
$ konsole --help-kde | grep caption
  --caption <caption>       Use 'caption' as name in the titlebar

However, this still does not give us the correct title and icon. I guess there's another issue in Konsole itself…

Yet, I think it's better to have a wrong icon and a wrong title than not having the application at all.


My versions:

$ emerge -pv kio konsole qtcore qtgui

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] dev-qt/qtcore-5.6.1:5/5.6::gentoo  USE="icu -debug -systemd {-test}" 0 KiB
[ebuild   R    ] dev-qt/qtgui-5.6.1:5/5.6::gentoo  USE="dbus gif jpeg png udev xcb -accessibility -debug -egl -eglfs -evdev -gles2 -gtkstyle -ibus -libinput {-test} -tslib -tuio" 0 KiB
[ebuild   R    ] kde-frameworks/kio-5.26.0-r2:5/5.26::gentoo  USE="X acl kerberos kwallet -debug -handbook {-test}" 0 KiB
[ebuild   R    ] kde-apps/konsole-16.04.3:5::gentoo  USE="X -debug -handbook {-test}" 0 KiB

Total: 4 packages (4 reinstalls), Size of downloads: 0 KiB
Comment 1 Michael Palimaka (kensington) gentoo-dev 2016-10-28 13:33:43 UTC
I /think/ the konsole side of the fix is in 16.08.x
Comment 2 Stefan Gast 2016-10-28 13:35:04 UTC
Created attachment 451748 [details, diff]
New version of kio-5.26.0-fix-desktop-launch.patch

New version of kde-frameworks/kio/files/kio-5.26.0-fix-desktop-launch.patch.
This one makes .desktop files with Terminal=true work again in KDE Plasma, yet the title and the icon of the terminal window are still wrong.
Comment 3 Michael Palimaka (kensington) gentoo-dev 2016-10-29 19:46:54 UTC
konsole-16.04.3 still uses kdelibs4support, which I assume is what provides -caption (KDE 4 option). konsole-16.08.0 and later ports away from kdelibs4support and recognises the Qt 5 option -qterminal.

kio-5.26.0-fix-desktop-launch.patch is an upstream backport in response to the above change. I didn't realise at the time that it required the matching change in konsole, or I would have delayed it until such a time as konsole-16.08.x is stable.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2016-12-18 18:08:35 UTC
konsole-16.08.3 is stable now