SliTaz SliTaz Forum

You are not logged in.

#1 2014-09-11 10:45:53

robcar
Member
Registered: 2014-03-20
Posts: 13

autostart

Hello,

it seems as if nothing I put in.config/openbox/autostart automatically starts. I need to have a browser window opened automatically after logon.

First of all: is it autostart or autostart.sh?

Btw I tried both versions, under .config/openbox, which I created, both with permissions 700.

The test command is simple, just like:

sleep 10 && leafpad &

Nothing happens. Any hints?

thank you

--

rob

Offline

#2 2014-09-11 15:46:05

rerivero
Member
Registered: 2012-06-18
Posts: 235

Re: autostart

application must be launched to Login.

review group and user:

USER: your user

GROUP: users

#chown tux:users autostart.sh

#chmod 644 autostart.sh

restart session

Offline

#3 2014-09-11 18:40:20

robcar
Member
Registered: 2014-03-20
Posts: 13

Re: autostart

thank, but it doesn't work.

It is the latest RC2, fresh reinstalled it on a VM, just to be sure (and I tried also autostart.sh):

tux@slitaz:~$ cd .config/openbox/

tux@slitaz:~/.config/openbox$ ls -la

total 3

drwxr-xr-x    2 tux      tux           1024 Sep 11 18:02 .

drwxr-xr-x    9 tux      users         1024 Sep 11 18:00 ..

-rwxrwxrwx    1 tux      users           22 Sep 11 17:58 autostart

tux@slitaz:~/.config/openbox$ cat autostart

sleep 20 && leafpad &

tux@slitaz:~/.config/openbox$

Offline

#4 2014-09-12 01:18:53

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: autostart

First of all Latest is rolling with updates, not RC2.

Autostart script ~/.config/openbox/autostart requires creating [c]~/.config/openbox/[/c] dir and works only in openbox-session. ~/.profile can be useful to add commands in it.

lxde-session uses autostart from [c]*.desktop[/c] files in directories:

systemwide:    /etc/xdg/autostart/

user's:        ~/.config/autostart/

[c][Desktop Entry][/c]

[c]Type=Application[/c]

[c]Name=script[/c]

[c]Exec=/path/filename[/c]

Then check for it in lxsession-edit.

In slitaz4: opening autostart-script without mkdir, old lxsession-edit (or something simalar) had 'add' button. For those who wants add-button it's possible to use [c]/usr/bin/lxqt-config-session[/c] from lxqt-session package. I just built lxsession 0.4.9.2 (gee1.0=0.6.8) with its lxsession-edit - nothing new, except new bugs and +200K to stripped binary. Maybe it's a good idea to create default ~/.config/openbox/autostart with #solution.

Offline

#5 2014-09-12 07:45:40

robcar
Member
Registered: 2014-03-20
Posts: 13

Re: autostart

Thanks az_ua!

That *.desktop thing worked out just fine

I created a new file named tazweb.desktop under systemwide dir with the following content:

[Desktop Entry]

Type=Application

Name=TazWeb

Exec=tazweb --kiosk http://www.google.com

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]