Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: startup scripts

  1. #11
    Join Date
    Aug 2012
    Beans
    7

    Re: startup scripts

    Quote Originally Posted by hakermania View Post
    Hey, good thing that you figured that out! Looking forward to hearing from you
    OK so after the format I created a folder under my user named bin. I created the .sh file as you described and stored it in that folder marking it as executable.

    #!/bin/bash
    cp ~/Documents/playlist0 ~/Documents/playlist1
    sleep 15
    vlc ~/Documents/playlist1

    I then created the autostart directory in .config and made a .desktop file with this;

    [Desktop Entry]
    Type=Application
    Name=Copy playlist
    Exec=/home/USER/bin/playstart.sh
    Terminal=false
    Comment=Updates playlist
    Categories=Application;

    I removed the Utility variable from Categories as it showed up blocked in red, which I figured meant incorrect.

    I did not need to mark it as executable, everything worked as expected on reboot.

    Because this is just one part of my project, I was planning on adding more lines to the .sh file to perform other basic actions. I'm assuming that it's better to localize everything within the one script rather than running multiple scripts and loaders.

    Thanks again!
    Last edited by lostinspaces; August 9th, 2012 at 08:26 PM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •