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

List:       kde-core-devel
Subject:    Re: starting apps from kicker
From:       Waldo Bastian <bastian () kde ! org>
Date:       2000-05-09 17:02:36
[Download RAW message or body]

On Tue, 09 May 2000, Simon Hausmann wrote:
> On Tue, 9 May 2000, David Faure wrote:
> > On Tue, May 09, 2000 at 01:05:10PM +0200, Simon Hausmann wrote:
> > > Hi,
> > >
> > > Since a few days I cannot launch any applications from kicker's menus
> > > :-(( I always get a messagebox complaining that the file or directory
> > > does not exist. (clean installation, fresh .kde, no KDEDIRS or KDEHOME
> > > set, KDEDIR set however)
> > >
> > > Is it just me? Am I doing something wrong with my environment
> > > variables?
> >
> > Does reverting my last commit to krun.cpp help ?
> >
> > Sorry, can't test right now.
> >
> > Also, it should be rather easy to find where this messagebox is popped
> > from (in the code) ?
>
> As far as I can see it is not KRun's fault. Here's what I found out:
>
> KRun is called in menus.cc in PanelBrowserMenu::slotExec. The actual call
> looks like this:
> new KRun( locate( "apps", relPath + fileList[id] ) );
>
> In my case relPath is QString::null and for example when launching
> KControl fileList[id] is "User.desktop" .
>
> Thus the locate call looks like
>
> locate( "apps", "User.desktop" );
>
> The result of this call is QString::null here :-(
>
> (and obviously KRun has a hard time executing QString::null ;-)
>
> Any ideas?

Seems like a good candidate for "startServiceByDesktopPath( relPath + 
fileList[id])" ....

Cheers,
Waldo

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

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