Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Starting scripts out of the gui

Help
tuxtrainer
2011-12-16
2013-06-03
  • tuxtrainer
    tuxtrainer
    2011-12-16

    I use a Car-PC with Debian "Squeeze" with some additional hardware (cam, phone, gps, umts-stick…)
    I would like to start a (shell-)script out of the gui.
    E.g. for launching xawtv to take a smooth look into my backdrive-cam, the phone-app to start a call, musikplayer and so on.

    Doing this by speech should work anymore (with "simon") but that's another thread…

     
  • Holli
    Holli
    2012-07-17

    Hi,

    you can do it with a button like this:

    <osd enabled="yes" type="button" x="x-pos" y="y-pos" h="height" w="width" command='spawn("argument") src"path to icon file" >

    (All in one line)

    argument can be a bash script or something. I tried a complete single command line, but this don't work. So you have to use a script.

    Regards,

    Holli

     
  • Holli
    Holli
    2012-07-17

    Hi,

    you can do it with a button like this:

    <osd enabled="yes" type="button" x="x-pos" y="y-pos" h="height" w="width" command='spawn("argument") src"path to icon file" >

    (All in one line)

    argument can be a bash script or something. I tried a complete single command line, but this don't work. So you have to use a script.

    Regards,

    Holli