Further detail for Nick's post:
We're using the debian 7 armhf lxde sdcard distribution with kernel
3.8.13-bone67 on the Beaglebone Black.
The objective is to automatically start an embedded java program using a
shell script when the user logs on.
1. The script executes properly from the user's home directory when
executed in the normal fashion from a terminal, i.e.
./start.sh
2. The content of the shell script is straightforward:
#!/bin/sh
# Start jOrgan and autoload the disposition.
java -jar ~/jOrgan-3_20/jorgan.jar
3. To achieve the autostart at login of a specific user we have followed
the standard LXDE application startup scenario:
- log in as the user
- edit the autostart file located in ~/.config/lxsession/LXDE
- add an entry (line) of the form @<application_name>
- save the file and log out
- log in as the user again
4. To test (3) the following lines wre appended to the autostart file. At
login both the leafpad and lxterminal applications were auto-started as
intended.
@leafpad
@lxterminal
5) To test running a command from the command line the following line was
appended to the autostart file. This appeared to do nothing at log in
other than start the Leafpad application. The Lxterminal application was
not visible.
So, the question is, why does this not work? How do we get a command-line
shell script to execute at login?
On Sunday, 16 November 2014 22:14:51 UTC+13, Nick Apperley wrote:
>
> Is there a way to automatically startup programs when logging into LXDE?
> Trying to get a program (shellscript) to automatically run when a user logs
> in to LXDE.
>
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.