[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KService / KRun / kioexec cannot be started
From:       David Faure <faure () kde ! org>
Date:       2014-12-26 13:37:22
Message-ID: 2337390.JW8R2m9iQR () asterix
[Download RAW message or body]

kioexec is only used when a program that can't handle remote URLs is being 
launched with a remote URL.

I really doubt this is the issue here, or something is very buggy. Are you 
100% sure that the code tries to run kioexec, with a local file? That should 
not happen.

Ah, maybe ksnapshot constructs a QUrl wrongly, from a local path and without a 
scheme, and then isLocalFile() return false. Debug the contents of the URLs 
being passed to KRun.

And why is kded5 not running? It's not installed?

On Friday 26 December 2014 13:46:05 Gregor Mi wrote:
> Hi,
> 
> I would need some feedback regarding the following kioexec issue:
> 
> I build the latest KF5 from scratch using kdesrcbuild according to [1]. Then
> I open ksnapshot and use the SendTo menu to start gwenview for example or
> kolourpaint. I can see the application launch feedback cursor but the
> application does not actually start.
> 
> So, since starting an application seems to be a very basic functionality, I
> wonder if this is just on my system or if anybody else has this issue, too.
> 
> If there are any changes to the current build&runtime setup or things which
> are not documented yet, I would like to update the Frameworks/Building wiki
> article [1].
> 
> Regards
> 
> Gregor
> 
> [1] https://community.kde.org/Frameworks/Building
> 
> On 19/12/14 11:34, Gregor Mi wrote:
> > Hi,
> > 
> > I narrowed the problem down to that `kioexec` cannot be started.
> > 
> > I can reproduce that by starting the latest KF5 ksnapshot and invoke any
> > entry in the SendTo menu.
> > 
> > This call in ksnapshot.cpp fails: (1) `KRun::run(*service, list, this,
> > isTempfile);` It shows the KToolInvocation but no application appears.
> > 
> > When I change the call to (2) `KRun::run(*service, QList<QUrl>(), this,
> > isTempfile);` (pass no arguments) the call succeeds.
> > 
> > In case (2) the service executable is started directly. In case (1)
> > kioexec is used which fails to start.
> > 
> > On the console it says
> > ```
> > Couldn't start kded5 from org.kde.kded5.service:
> > QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name
> > org.kde.kded5 was not provided by any .service files") , falling back to
> > running kbuildsycoca5 ```
> > 
> > Might this be the reason that kioexec does not work? I am glad for any
> > hint.
> > 
> > Gregor
> > 
> > On 30/11/14 21:19, Gregor Mi wrote:
> >> Hello,
> >> 
> >> what is the current state of the KService in frameworks branch?
> >> 
> >> I ask because ksnapshot's SendTo menu invokes a KService method to start
> >> the chosen application. When I click a menu item the launch indicator
> >> appears next to the mouse for a short time. But no program gets started.
> >> 
> >> I use kdesrcbuild to build everything and work on KDE 4 with KF5
> >> environment variables set. The behaviour can be reproduced on at least
> >> one other independently setuped computer.
> >> 
> >> Gregor

-- 
David Faure, faure@kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic