If you want to start a program when you login to a particular user you
should either use services provided by the desktop manager (Gnome, XFCE,
Cinnamon, etc) or, if you don't need to start a desktop manager, you can
start it from the .bash_profile in the user's home directory.
The fact that XCSoar crashes when you try to make the desktop manager
start it suggests that that environment is not providing something it
needs. For instance, is XCSoar really crashing or is it just the manager
not being able to find XCSoar? Things to check and do:
- Is the directory containing XCSoar in $PATH? If not, you need
to change .bash_profile so it adds that directory to $PATH
- Does it work if you use an absolute pathname for XCSoar? That type of
program launcher often ignores $PATH and so an absolute path name is
required.
- write a bash script to start XCSoar and also load add diagnostic
statements into it such as:
pwd
which XCSoar
echo $USER
echo $PATH
and run it from the command line. When its working properly, tell the
desktop manager to run the script at login time. If the diagnostic
displays differ, add statements to the script to fix the differences
until XCSoar does run.
Martin
Consequently I know nothing about the RPi's desktop manager, or what
that might be capable of in the way of debugging. If it uses the system
logger to output diagnostics that may well be lost on an out-of-the box
install because detail that gets logged is minimal, probably to avoid
hammering the SD card the machine uses as its main fs.
Thermals,