Announcement

Collapse
No announcement yet.

Start a program at boot.

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Start a program at boot.

    I have a small java windchime generator which i would like to start at log-in, could someone please tell me how to achieve this?

    I've written a small (executable) batch file:
    cd Sounds/javachimes
    java -jar javachimes.jar
    which i dropped into .kde/Autostart.... but all that does is starts Kate.

    Any guidance will be appreciated

    #2
    Re: Start a program at boot.

    Would you please post the contents of the file you wrote?
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Start a program at boot.

      > FAQ: How to start programs when KDE starts or stops

      This seems to work:

      - making a text/script file:
      Code:
      #!/bin/sh
      
      java -jar /home/rog/Test/javachimes/javachimes.jar
      java -jar /path/to/java_file.jar !

      - dropping it to the /home/rog/.kde/Autostart

      - making it executable (right click > Properties >Permissions > is executable).


      > JavaChimes
      Before you edit, BACKUP !

      Why there are dead links ?
      1. Thread: Please explain how to access old kubuntu forum posts
      2. Thread: Lost Information

      Comment


        #4
        Re: Start a program at boot.

        Originally posted by Snowhog
        Would you please post the contents of the file you wrote?
        That was it !

        cd Sounds/javachimes
        java -jar javachimes.jar

        Comment


          #5
          Re: Start a program at boot.

          Originally posted by Rog131
          > FAQ: How to start programs when KDE starts or stops

          This seems to work:

          - making a text/script file:
          Code:
          #!/bin/sh
          
          java -jar /home/rog/Test/javachimes/javachimes.jar
          java -jar /path/to/java_file.jar !

          - dropping it to the /home/rog/.kde/Autostart

          - making it executable (right click > Properties >Permissions > is executable).


          > JavaChimes
          Thank You very much indeed for that, Rog.

          Incidentally, that is the very program i use. I used to use the .exe when running XP, but can't get wine to play it.

          But - with a little experimentation, this is as good.

          Comment

          Working...
          X