LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Automatically cast 'export LD_ASSUME_KERNEL' before an app starts (https://www.linuxquestions.org/questions/linux-general-1/automatically-cast-export-ld_assume_kernel-before-an-app-starts-285094/)

tbfirefox 02-01-2005 06:44 PM

Automatically cast 'export LD_ASSUME_KERNEL' before an app starts
 
Hi. I have one or two apps which I need to type 'export LD_ASSUME_KERNEL=2.4.21' before i execute the program. Is there anyway I can get KDE to execute this command automatically if I click on the program in the Menu or Desktop?

Thanks for your help

archdev 02-01-2005 08:59 PM

My installation of Maple needed export LD_ASSUME_KERNEL=2.4.1 to be called as well.

I just editied the script that starts it to include that line so I guess your fix could just be make a script in your ~/bin directory lets call it foo.sh

then chmod +x foo.sh

Then in foo.sh something like this could work:



Code:

#!/bin/sh   
export LD_ASSUME_KERNEL=2.4.1   
#then your program of interest here say 
/usr/local/foo/bin/bar



All times are GMT -5. The time now is 08:21 AM.