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

List:       kde-core-devel
Subject:    Re: starting apps from kicker
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-05-09 11:29:29
[Download RAW message or body]

On Tue, May 09, 2000 at 02:18:11PM +0200, 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.
Cool :) /me relieved :)

> 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 :-(
Obviously relPath shouldn't be empty...
Any kicker hacker listening ? :/

> (and obviously KRun has a hard time executing QString::null ;-)
;-))) Should it bring up an empty window ? :)

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

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

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