Bug 346231

Summary: [kompare] kdeinit could not launch /usr/bin/kompare
Product: [Applications] kompare Reporter: fademind
Component: generalAssignee: Kompare developers <kompare-devel>
Status: RESOLVED FIXED    
Severity: normal CC: arojas, jpwhiting
Priority: NOR    
Version: 4.1.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
URL: https://bugs.archlinux.org/task/44594
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description fademind 2015-04-15 18:51:17 UTC
Default launch options in kompare.desktop file don't working. In terminal I see an error:

[tomasz@arch ~]$ kompare -caption %c -o %U
Unknown options: a, p, t, i.

In Window mode I see kdeinit could not launch /usr/bin/kompare prompt

Additional Output from console after launch kompare command only (without additional flags)

[tomasz@arch ~]$ kompare
KXMLGUI file found at deprecated location ("/usr/share/kompare/kompareui.rc") -- please use ${KXMLGUI_INSTALL_DIR} to install this file instead.
QStatusBar::insertPermanentWidget: Index out of range (1), appending widget
QStatusBar::insertPermanentWidget: Index out of range (2), appending widget
kf5.kservice.sycoca: Trying to open ksycoca from "/home/tomasz/.cache/ksycoca5"
komparepart: SetXOffset : Scroll to x position: 6
komparepart: SetXOffset : Scroll to x position: 6
libkomparediff: Show me the arguments: 0x195ba80 , KompareSplitter(0x1923820) , KomparePart(0x195b710) , komparemodellist
KXMLGUI file found at deprecated location ("/usr/share/kompare/komparepartui.rc") -- please use ${KXMLGUI_INSTALL_DIR} to install this file instead.
KXMLGUI file found at deprecated location ("/usr/share/kompare/kompareui.rc") -- please use ${KXMLGUI_INSTALL_DIR} to install this file instead.
Shortcut for action "file_compare_files" "&Compare Files..." set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "file_blend_url" "&Blend URL with Diff..." set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_apply" "&Zastosuj różnicę" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_unapply" "C&ofnij różnicę" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_applyall" "Z&astosuj wszystkie" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_unapplyall" "&Cofnij zastosowanie dla wszystkich" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_previousfile" "&Poprzedni plik" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_nextfile" "&Następny plik" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_previous" "&Poprzednia różnica" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "difference_next" "&Następna różnica" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "file_refreshdiff" "Refresh Diff" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
kompareshell: Arg Count = 0
QCommandLineParser: option not defined: "e"


Reproducible: Always

Steps to Reproduce:
1. upgrade to kompare 15.04.0-1 and libkomparediff2 15.04.0-1
2. Trying launch kompare app


Actual Results:  
App not launch.

Error occured: 
kompare -caption %c -o %U
Unknown options: a, p, t, i.

Expected Results:  
Launch default kompare app window for prepare files to comparing
Comment 1 Jeremy Whiting 2015-04-15 19:35:50 UTC
Doh, -caption came from KCmdLineArgs, but since Kompare was ported to kf5 it uses QApplication instead of KApplication. You can locally remove the -caption %c from the Exec line in that .desktop file and run kbuildsycoca5 as a workaround. Fix will be in git shortly.
Comment 2 Jeremy Whiting 2015-04-15 20:05:54 UTC
Git commit eb62d746d72e6dd8d9352616b038e87d369c14f6 by Jeremy Whiting.
Committed on 15/04/2015 at 20:05.
Pushed by whiting into branch 'master'.

Remove -caption %c from Exec line in .desktop file since we don't use KApplication.
Reviewed by Rex Deiter on irc.

M  +1    -1    kompare.desktop

http://commits.kde.org/kompare/eb62d746d72e6dd8d9352616b038e87d369c14f6
Comment 3 Jeremy Whiting 2015-04-15 20:06:38 UTC
Git commit 0e4361f7439adfa62f4ec256a8631c98b485c89b by Jeremy Whiting.
Committed on 15/04/2015 at 20:06.
Pushed by whiting into branch 'Applications/15.04'.

Remove -caption %c from Exec line in .desktop file since we don't use KApplication.
Reviewed by Rex Deiter on irc.

(cherry picked from commit eb62d746d72e6dd8d9352616b038e87d369c14f6)

M  +1    -1    kompare.desktop

http://commits.kde.org/kompare/0e4361f7439adfa62f4ec256a8631c98b485c89b
Comment 4 Antonio Rojas 2015-04-15 20:19:52 UTC
This fixes launching it, but it still freezes plasma. The line X-DBUS-StartupType=Multi also needs to be removed
Comment 5 fademind 2015-04-15 20:38:45 UTC
It is not enought. 

After applied this changes, ran kbuildsycoca5 and Launch kompare app from menu launcher it is something wrong: Launcher window is blocked with prompt   kdeinit could not launch /usr/bin/kompare prompt BUT prompt will be showed AFTER closing kompare window. Before that it is locked by Launcher Menu.

VIDEO with showing issue: https://dl.dropboxusercontent.com/u/7244180/bug/out.ogv
Comment 6 fademind 2015-04-15 20:42:14 UTC
After apply solution from Antonio Rojas is working GOOD.
Comment 7 Antonio Rojas 2015-04-15 20:43:34 UTC
(In reply to fademind from comment #6)
> After apply solution from Antonio Rojas is working GOOD.

But still needs to be fixed, so why did you close it?
Comment 8 Jeremy Whiting 2015-04-15 20:50:36 UTC
Git commit 71efd99d41404f0295b03d5623ec3e78df9887cb by Jeremy Whiting.
Committed on 15/04/2015 at 20:49.
Pushed by whiting into branch 'Applications/15.04'.

Remove X-DBUS-StartupType also.

M  +0    -1    kompare.desktop

http://commits.kde.org/kompare/71efd99d41404f0295b03d5623ec3e78df9887cb