autostart under /etc/xdg/lxsession/Lubuntu/ does not works
Posted: Wed Dec 04, 2013 2:56 pm
Hi,
i don't know if is a bug on lubuntu 13.10
I'm trying to start a script after login.
My script is that:
if i running it from shell
Well. I'm changing /etc/xdg/lxsession/Lubuntu/autostart like this
but after login nothing happens
but if change local autostart
after login it works
What's wrong? How can set my lubuntu in order to run the same script for all users?
i don't know if is a bug on lubuntu 13.10
I'm trying to start a script after login.
My script is that:
Code: Select all
#!/bin/bash
echo "Hello World" > /tmp/hello.txt
Code: Select all
./hello.sh
user@localhost:~/Desktop$ ls -alh /tmp/hello.txt
-rw-rw-r-- 1 user user 12 dic 2 11:12 /tmp/hello.txt
Code: Select all
@/home/user/Desktop/hello.sh
Code: Select all
ls -alh /tmp/hello.txt
ls: cannot access /tmp/hello.txt: No such file or directory
Code: Select all
cat /etc/xdg/lxsession/Lubuntu/autostart > /home/user/.config/lxsession/Lubuntu/autostart
Code: Select all
ls -alh /tmp/hello.txt
-rw-r--r-- 1 user user 12 dic 2 11:44 /tmp/hello.txt