WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] OpenBox autostart not working when adding other programs  (Read 5105 times)

Offline WoodenStone

  • Newbie
  • *
  • Posts: 5
[Solved] OpenBox autostart not working when adding other programs
« on: September 26, 2020, 10:41:06 PM »
Editing the openbox ~/.config/openbox/autostart.sh and adding applications does not work and said apps are not launched
« Last Edit: September 30, 2020, 10:08:07 PM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14818
Re: OpenBox autostart not working when adding other programs
« Reply #1 on: September 27, 2020, 05:12:31 AM »
You don't say which version or architecture you're using, but did you load the openbox-config extension?

Offline WoodenStone

  • Newbie
  • *
  • Posts: 5
Re: OpenBox autostart not working when adding other programs
« Reply #2 on: September 27, 2020, 02:38:29 PM »
I'm running on the 32-Bit version and did you mean obconf, because there is not openbox-config package that I'm aware of

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14818
Re: OpenBox autostart not working when adding other programs
« Reply #3 on: September 27, 2020, 03:06:30 PM »
It’s in the 64-bit repo

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: OpenBox autostart not working when adding other programs
« Reply #4 on: September 27, 2020, 04:44:34 PM »
Hi WoodenStone
The 32 bit version already contains the contents of  openbox-config.tcz.  For some reason the Tinycore scripts were
split off in x86_64.

Could you post the contents of your  ~/.config/openbox/autostart.sh  script please.

Offline WoodenStone

  • Newbie
  • *
  • Posts: 5
Re: OpenBox autostart not working when adding other programs
« Reply #5 on: September 27, 2020, 06:11:04 PM »
Hi WoodenStone
The 32 bit version already contains the contents of  openbox-config.tcz.  For some reason the Tinycore scripts were
split off in x86_64.

Could you post the contents of your  ~/.config/openbox/autostart.sh  script please.
Here is my autostart.sh

Code: [Select]
# This shell script is run before Openbox launches.
# Environment variables set here are passed to the Openbox session.

aterm &

# Set a background color
BG=""
if which hsetroot >/dev/null; then
    BG=hsetroot
else
    if which esetroot >/dev/null; then
BG=esetroot
    else
if which xsetroot >/dev/null; then
    BG=xsetroot
fi
    fi
fi
test -z $BG || $BG -solid "#4f5f82"

# D-bus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval `dbus-launch --sh-syntax --exit-with-session`
fi

# Make GTK apps look and behave how they were set up in the gnome config tools
if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  /usr/libexec/gnome-settings-daemon &
elif which gnome-settings-daemon >/dev/null; then
  gnome-settings-daemon &
# Make GTK apps look and behave how they were set up in the XFCE config tools
elif which xfce-mcs-manager >/dev/null; then
  xfce-mcs-manager n &
fi

# Preload stuff for KDE apps
if which start_kdeinit >/dev/null; then
  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
fi

# Run XDG autostart things.  By default don't run anything desktop-specific
# See xdg-autostart --help more info
#DESKTOP_ENV=""
#if which /usr/local/lib/openbox/xdg-autostart >/dev/null; then
#  /usr/local/lib/openbox/xdg-autostart $DESKTOP_ENV
#fi

    [EDIT]: Added code tags.  Rich
« Last Edit: September 27, 2020, 07:54:26 PM by Rich »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: OpenBox autostart not working when adding other programs
« Reply #6 on: September 27, 2020, 07:58:16 PM »
Hi WoodenStone
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: OpenBox autostart not working when adding other programs
« Reply #7 on: September 27, 2020, 08:11:39 PM »
Hi WoodenStone
The first line in that script says:
...
Code: [Select]
# This shell script is run before Openbox launches.

 ----- Snip -----
To me that says this is the wrong place to launch an application since the window manager is not running yet.

Try this:
Code: [Select]
echo "exec aterm &" > ~/.X.d/Autostart
Then restart X.

Offline WoodenStone

  • Newbie
  • *
  • Posts: 5
Re: OpenBox autostart not working when adding other programs
« Reply #8 on: September 30, 2020, 08:26:15 PM »
Hi WoodenStone
The first line in that script says:
...
Code: [Select]
# This shell script is run before Openbox launches.

 ----- Snip -----
To me that says this is the wrong place to launch an application since the window manager is not running yet.

Try this:
Code: [Select]
echo "exec aterm &" > ~/.X.d/Autostart
Then restart X.
Thanks it worked

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11631
Re: [Solved] OpenBox autostart not working when adding other programs
« Reply #9 on: September 30, 2020, 10:09:48 PM »
Hi WoodenStone
Thanks it worked
Marked as solved.