Results 1 to 3 of 3

Thread: Launcher Help Please - IDJC - Internet DJ Console

  1. #1
    Join Date
    Feb 2010
    Location
    U.K.
    Beans
    782
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Launcher Help Please - IDJC - Internet DJ Console

    Hi,

    I'm sure this can be done, but I'm too stupid to work out how.

    I use IDJC (Internet DJ Console) to stream to a Shoutcast server.

    IDJC relies on having a jackd process to connect to.

    So at the moment this is how I have to proceed..

    1. Open 2 Terminal windows
    2. In Terminal 1 I startup a jackd instance with -> jackd -n foridjc -d alsa -r 44100
    3. In Terminal 2 I then startup IDJC referencing the above jackd instance with -> idjc -j foridjc


    This all works fine, but just feels a bit clunky.

    I'd like a launcher script that can start the jackd instance and kick it into the background then start idjc using the already started jackd.

    Would also be nice if when exiting IDJC, the related jackd process got terminated too

    I've tried getting this to work using a shell script but it always seems to get tied up with jackd running in the foreground.

    Any ideas would be appreciated.

    Many thanks
    ~crypto~


  2. #2
    Join Date
    Jan 2006
    Location
    Ohio, USA
    Beans
    254
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Launcher Help Please - IDJC - Internet DJ Console

    Try this:
    Right Click in Top Panel and choose ADD TO PANEL.
    Click on "custom Application Launcher" and click the ADD Button.
    Type: "Application in Terminal"
    Name: Type in the applications Name.
    Command: Type in the Terminal Command needed to start the App.
    ( I don't know if you can put Both Commands in the one "Command" window, but try it)
    The Truly Educated Never Graduate!
    One Desktop & Two Dell 1525n Laptops - Multi-boot Xubuntu 11.11 & others.
    Don't Fear the Penguin!
    Registered Linux User #507530 & Ubuntu User # 30733

  3. #3
    Join Date
    Feb 2010
    Location
    U.K.
    Beans
    782
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Launcher Help Please - IDJC - Internet DJ Console

    Unfortunately that doesn't seem to like 2 commands.

    I have now created 2 tiny scripts:

    1.
    Code:
    jackd -n foridjc -d alsa -r 44100 &
    idjc -j foridjc
    2.
    Code:
    #!/bin/sh
    jackd -n foridjc -d alsa -r 44100 &
    idjc -j foridjc
    They both do exactly the same thing.

    It does work in that running either will start jackd then idjc and it all works fine.

    However, when I then exit idjc the jackd process is left running.

    I have managed to get around this though - luckily idjc has a configurable "Command to run on exit" setting. So in there I have put:

    Code:
    killall jackd
    So I have ended up with a custom launcher on the panel that points to my little script to start the two things, and idjc takes care of killing jackd as it exits.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •