This forum has been archived. All content is frozen. Please use KDE Discuss instead.

adding new item to kickoff apliccatoin launcher

Tags: None
(comma "," separated)
yaroslav kishchenko
Registered Member
Posts
8
Karma
0
Hello every one
not sure if this connected with plasma but it is all about widget mentioned above

I want to add new menu item ( i even succeed in one ) but it fails to lunch
I want to add MPIDE item ( https://github.com/chipKIT32/chipKIT32-MAX/downloads )
it took a time for me to install it and now i able to launch it from console as regular user
if i launch it as root there throws some exceptions

when i added MPIDE to menu and also checked 'run in console' I saw the same behavior as when I launched it as root

Is kickoff widget launch applications as root?
And how make this menu item launchable?
User avatar
google01103
Manager
Posts
6668
Karma
25
post the output in the "run in console" console window

no, apps are not run as root unless you specify it to be


OpenSuse Leap 42.1 x64, Plasma 5.x

yaroslav kishchenko
Registered Member
Posts
8
Karma
0
User avatar
google01103
Manager
Posts
6668
Karma
25
does not look like a KDE issue, looks like a pathing issue - see line 131

when you run it successfully in command line what folder are you in? as it works from command line not menu I would suggest filling in the work path (advanced tab) in menu editor

they have a Linux startup troubleshouting FAQ/thread http://www.chipkit.org/forum/viewtopic.php?f=6&t=18


OpenSuse Leap 42.1 x64, Plasma 5.x

yaroslav kishchenko
Registered Member
Posts
8
Karma
0
Yeah I saw it when launching as root or before i installed rxtx
also i set the working directory in menu item as directory which script in
User avatar
google01103
Manager
Posts
6668
Karma
25
set work path to the folder you run it successfully in using command line


OpenSuse Leap 42.1 x64, Plasma 5.x

yaroslav kishchenko
Registered Member
Posts
8
Karma
0
you mean this?

cd /home/yaroslav/mpide-0023-linux-20120903 && /home/yaroslav/mpide-0023-linux-20120903/mpide

steal do not work

what the difference between launching from console and launching from kickoff?
yaroslav kishchenko
Registered Member
Posts
8
Karma
0
Is it not hard for you to try MPIDE on your machine?
User avatar
google01103
Manager
Posts
6668
Karma
25
change the working path to /home/yaroslav/mpide-0023-linux-20120903/


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
google01103
Manager
Posts
6668
Karma
25
yaroslav kishchenko wrote:you mean this?

cd /home/yaroslav/mpide-0023-linux-20120903 && /home/yaroslav/mpide-0023-linux-20120903/mpide

steal do not work

what the difference between launching from console and launching from kickoff?


using the above in the work path won't work because it would be looking for a folder path and you're providing multiple commands, might work if used in the command field

the problem you're experiencing is probably due to the command, mpide, searching for things using a relative path from where the command was executed


OpenSuse Leap 42.1 x64, Plasma 5.x

yaroslav kishchenko
Registered Member
Posts
8
Karma
0
i launch mpide from console from /home/yaroslav/mpide-0023-linux-20120903 and it works
i tried those multiple commands and i tried just command with setting working dir in dialog but its not working
it seems like kickoff widget lunches program with some tricks
when i first time launch it from console and it gave the same mistake as now the problem was that there was no path in LD_LIBRARY_PATH to /usr/lib/jni
also mpide use a lot of java so may be kde do some tricks with jvm
i use sun jvm
User avatar
google01103
Manager
Posts
6668
Karma
25

Fri Apr 12, 2013 5:29 pm
this is what worked fine for me



OpenSuse Leap 42.1 x64, Plasma 5.x

yaroslav kishchenko
Registered Member
Posts
8
Karma
0
lucky!!!!!
can you run mpide as root?
yaroslav kishchenko
Registered Member
Posts
8
Karma
0
it might be a problem of mpide cause i can not launch as root
i also ask about that issue in chipkit forum but it steal did not help
User avatar
google01103
Manager
Posts
6668
Karma
25
you don't want to run any app other than an admin task as root as it's bad form and dangerous

using kdesu no work but su -c ./mpide does if started in the mpide dir, assume has to do with env variables and pathing


OpenSuse Leap 42.1 x64, Plasma 5.x



Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]