Setting up shortcut to app on desktop
I've recently installed db2 on slackware and want to run the various apps by clicking an icon on the kde desktop - a simple task I know.
I can run the shell script db2cc from konsole which in turn runs the following -
db2javit -j:CC -i: -l: -o:"-Xmx128m -Xms32m" -a:"$*"
When I run the shell script from an icon on the desktop the following two lines get written to .xsession-errors
DB2JAVIT : RC = 9501
DB2INSTANCE : -2029059916
I originally got this error when I ran from konsole because I hadn't included the path to the java library and/or hadn't exported the correct variables when starting my session. My .bashrc is now correct as I can run all the commands from within konsole.
I've always assumed that the paths etc. exported by my .bashrc are available to any application that I try to run from an icon on the desktop. Am I wrong in that assumption?
How can I get the shortcut to the db2cc application on the desktop to work. I can create shortcuts to other applications on the desktop without problem i.e. mozilla.
Thanks in anticipation.
|