Results 1 to 6 of 6

Thread: [SOLVED] Openbox Start-Up Script

  1. #1
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    [SOLVED] Openbox Start-Up Script

    At the minute I am using:
    Code:
    #!/bin/sh 
    openbox &
    eval `cat $HOME/.fehbg` &
    gedit
    As my start-up script all works perfectly unless I close down gedit and then it logs me out.
    I obviously dont want to have to keep gedit open so I tried:
    Code:
    #!/bin/sh 
    openbox &
    eval `cat $HOME/.fehbg` &
    and
    Code:
    #!/bin/sh 
    openbox &
    eval `cat $HOME/.fehbg
    and it wont log in and with the other one it will log in but openbox does not work i.e right click menu not active.

    How can I remove gedit from the script but keep it working as I dont want to have to keep gedit open at all times.

    Saj
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

  2. #2
    Join Date
    Aug 2007
    Location
    /dev/null
    Beans
    444
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Openbox Start-Up Script

    I'm pretty sure that the last command has to end with a "&" as well.

  3. #3
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Openbox Start-Up Script

    Code:
    #!/bin/sh 
    openbox &
    eval `cat $HOME/.fehbg` &
    gedit &
    Does not load the openbox part fully (the title bar with minimize,maximise,close does not appear.) Also the right click menu does not work.


    Code:
    #!/bin/sh 
    openbox &
    eval `cat $HOME/.fehbg` &
    gedit
    No matter what program I replace gedit with when I close that program down it logs me out.

    Saj
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

  4. #4
    Join Date
    Apr 2006
    Beans
    72

    Re: Openbox Start-Up Script

    Try:

    #!/bin/sh
    eval `cat $HOME/.fehbg` &
    gedit &
    openbox &

    or http://icculus.org/openbox/index.php/Help:Autostart

  5. #5
    Join Date
    Apr 2007
    Location
    England, United Kingdom
    Beans
    805
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Openbox Start-Up Script

    Code:
    #!/bin/sh
    feh --bg-scale "hello.JPG"
    exec openbox
    Works.

    Saj
    Ubuntu User Since 6.06 - "Here To Help"
    Ubuntu Beta Tester Since 6.10 - "We have the problems so you don't have too."
    --------------------------------------------------
    Linux Registered User: 452642 Ubuntu Registered User: 17365

  6. #6
    Join Date
    Jul 2006
    Beans
    1,152

    Re: Openbox Start-Up Script

    If you use the autostart.sh file (default in /etc/xdg/openbox, your modified copy in ~/.config/openbox) you shouldn't add openbox & or exec openbox to the list. Have a look at the Openbox documentation or my Openbox guide (link in signature) to understand how Openbox's autostart file works.

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
  •