KDE App Launcher
Chuck Swiger
cswiger at mac.com
Fri Mar 24 14:04:59 UTC 2006
Nikolas Britton wrote:
> How do I get KDE to run this command:
>
> setenv SDL_VIDEO_X11_DGAMOUSE 0; setenv QEMU_AUDIO_DRV sdl; nice +5
> qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img&
>
> or this:
>
> export SDL_VIDEO_X11_DGAMOUSE=0; export QEMU_AUDIO_DRV=sdl ; nice +5
> nohup qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img&
>
> Or this, win98se_start.sh:
>
> #!/bin/sh
> export SDL_VIDEO_X11_DGAMOUSE=0
> export QEMU_AUDIO_DRV=sdl
> nohup qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img&
> exit
>
> I can't get any of them to work, I've tried other permutations too.
> The only way I got it to work is if I tell it to run in a term window,
> but I don't want that.
setenv is csh; export is /bin/sh. Don't confuse the two or else you will be
doomed to wander endlessly in confusion. :-) / 2
For /bin/sh, you can't export a variable on the line you set it; that's an
extension found in bash, ksh, and zsh, but is not part of the original sh:
#!/bin/sh
SDL_VIDEO_X11_DGAMOUSE=0
export SDL_VIDEO_X11_DGAMOUSE
QEMU_AUDIO_DRV=sdl
export QEMU_AUDIO_DRV
nohup qemu -soundhw es1370 ~/qemu/win98se/win98se_disk.img &
--
-Chuck
More information about the freebsd-questions
mailing list