Hi there, I want to lunch an app via a wrapper script that feeds in extra ENV variables, but this doesn't work. For instance, with the following script ------------------------------------------------ #!/bin/sh export FOO='bar' konsole ------------------------------------------------ triggered by META+ALT+k, a konsole pops up, but $ echo $FOO shows nothing. Launching the same script directly from a konsole's command line works as expected: $ echo $FOO bar Cheers, ^s Reproducible: Always Steps to Reproduce: 1. Write a wrapper shell script with an "export FOO=bar; <app-path>" 2. configure a khotkeys' trigger to launch the above wrapper 3. exercise the trigger Actual Results: The $FOO variable is empty. Expected Results: The $FOO variable should be set with 'bar'. Possible related Bug 76917
Could you try "konsole --nofork", or a program which does not use KUniqueApplication?
Tried, no luck. With '--nofork', khotkeys seems to refuse to run the command -- nothing happens.
> #!/bin/sh > export FOO='bar' > konsole bashism. I assume the krun shell interpreter is used by khotkeys where this won't work. => Can you try whether assigning "env FOO=bar konsole" works for you?
No problem here. I will claim that this depends on what /bin/sh (which indeed is used for interpretation) actually is. Eg. bash/dash/whatnotsh show different behavior depending on the interactive mode or what $TERM is when invoked. => To be sure, operate on the "env" wrapper, otherwise check the setup of your shell interpreter (you may ask for help, if required)