Bug 340325 - Kpat v. 4.14.2 will not start in kubuntu 14.10 with Plasma 5
Summary: Kpat v. 4.14.2 will not start in kubuntu 14.10 with Plasma 5
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kpat
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR grave
Target Milestone: ---
Assignee: Stephan Kulow
URL:
Keywords:
: 341015 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-10-25 06:43 UTC by Valorie Zimmerman
Modified: 2014-12-18 10:24 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valorie Zimmerman 2014-10-25 06:43:06 UTC
If I attempt to launch from krunner or kicker, I get message: Sorry: KDEInit could not launch 'kpat':
Could not open library '/usr/lib/x86_64-linux-gnu/libkdeinit5_kpat'.
Cannot load library /usr/lib/x86_64-linux-gnu/libkdeinit5_kpat: (/usr/lib/x86_64-linux-gnu/libkdeinit5_kpat.so: cannot open shared object file: No such file or directory)

If instead I try to start it in yakuake:
$ kpat
Command 'kpat' is available in '/usr/games/kpat'
The command could not be located because '/usr/games' is not included in the PATH environment variable.
kpat: command not found

Reproducible: Always

Steps to Reproduce:
1. try to start kpat from krunner or kicker
2. copy/paste error message
3. attempt the same thing in yakuake

Actual Results:  
error messages, and no kpat

Expected Results:  
kpat starting up

I never changed or renamed any config files after upgrading. I know it's just kpat, but it's the only game I ever play.
Comment 1 Ian Wadham 2014-10-25 21:29:25 UTC
(In reply to Valorie Zimmerman from comment #0)
> If I attempt to launch from krunner or kicker, I get message: Sorry: KDEInit
> could not launch 'kpat':
> Could not open library '/usr/lib/x86_64-linux-gnu/libkdeinit5_kpat'.
> Cannot load library /usr/lib/x86_64-linux-gnu/libkdeinit5_kpat:
> (/usr/lib/x86_64-linux-gnu/libkdeinit5_kpat.so: cannot open shared object
> file: No such file or directory)
> 
It looks as though krunner and kicker are trying to start kpat as if it was one of those "inner circle" KDE apps that can be built to run as a library attached to the kdeinit process (e.g. konsole?).  What is more, they seem to be assuming kpat is a KF5 app, when it is still (FWICT) a KDE 4 app.  The source code in the kpat repository has not been "ported" to Frameworks AFAICT.

> If instead I try to start it in yakuake:
> $ kpat
> Command 'kpat' is available in '/usr/games/kpat'
> The command could not be located because '/usr/games' is not included in the
> PATH environment variable.
> kpat: command not found
> 
Weird and apparently self-contradictory.  If you run command 'file /usr/games/kpat', does it say there is an executable file there?  Can you run the command '/usr/games/kpat' (i.e. bypassing the PATH variable)?  What happens if you try to run another KDE game, such as KSudoku (which I know for a fact is still a KDE 4 game, because I am the maintainer)?

Maybe someone on the kde-devel, kde-core-devel, kde-frameworks-devel or Ubuntu mailing lists can help you further.

The key issue is how to install and run KDE 4 apps in a KF5 environment.  Surely there is a proper way to do that.

> I never changed or renamed any config files after upgrading. I know it's
> just kpat, but it's the only game I ever play.

And upgrading to KF5 should not deny you that pleasure, IMHO... :-)
Comment 2 Scarlett Moore 2014-10-29 22:23:09 UTC
yes /usr/share/kpat does indeed run the process.

I will try ksudoku.

Confirming this as I can reproduce.
Comment 3 Valorie Zimmerman 2014-10-29 23:43:02 UTC
Running from the cli, /usr/games/kpat (or Palapeli, same symptoms) absolutely does work. 

I will add David to the CC list.
Comment 4 Scarlett Moore 2014-10-29 23:58:09 UTC
same issue with ksudoku
Comment 5 Peter Nunn 2014-11-16 06:47:53 UTC
I have this same issue on an recently upgrade kde 5 system.
Comment 6 Christoph Feck 2014-11-16 11:54:37 UTC
*** Bug 341015 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2014-11-16 11:58:19 UTC
Does the PATH environment variable include the /usr/games directory?
Comment 8 Christoph Feck 2014-11-16 12:00:19 UTC
Actually, I wonder why it is installed in a different prefix. The CMakeLists.txt does install it into default prefix. This looks like a distribution issue to me.
Comment 9 Peter Nunn 2014-11-16 12:10:08 UTC
My path environment variable does include /usr/games
Comment 10 Christoph Feck 2014-11-16 14:58:04 UTC
Peter, what is the error message, if you type "kpat" in Konsole?
Comment 11 Peter Nunn 2014-11-16 21:36:31 UTC
The program opens with the following printed on the console

Bus::open: Can not get ibus-daemon's address. 
IBusInputContext::createInputContext: no connection to ibus-daemon

But, seems to be running fine.
Comment 12 Valorie Zimmerman 2014-12-18 10:24:36 UTC
With the latest updates in Kubuntu, Kpat is running fine from the menus, from krunner, and from the icon in the taskbar.