I have a shell script which iis set to startup on login. Pressing the "Run Now" option on the startup dialog, correctly starts the app.
On reboot and login, the app doesn't start. Running it via the system setting/startup/run now works fine.
Is there a log anywhere of what reason is give for the app not running automatically?
Startup Apps
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
Re: Startup Apps
Is the shell script executable?
Usually right-click on the file--Properties/Permissions will show
Usually right-click on the file--Properties/Permissions will show
Everything is difficult before it gets easy.
Re: Startup Apps
Yes, executable. as I said, it runs within the startup dialogue by pressing the "Run Now" option. The only issue is it not starting at boot or login.
Re: Startup Apps
Check the .desktop file created in ~/.config/autostart. It might be somehow malformed.
Last, if you're not going to disclose any state secret, post the content of your script here.
Either way there must be something stopping it from getting executed at startup.
Last, if you're not going to disclose any state secret, post the content of your script here.
Either way there must be something stopping it from getting executed at startup.
Re: Startup Apps
There is no entry in the desktop folder, this is simply a script to start the server.
Script is from Readerware books database app used to start the readerware database server:
*****************************************************************************************************************
*************************************************************************************************************************
Script is from Readerware books database app used to start the readerware database server:
*****************************************************************************************************************
Code: Select all
#!/bin/bash
# Shell script to start Readerware. This script is designed to work
# with the Sun Java implementation.
#
#
# classpath is relative to installation directory
cd "${0%/*}";pwd
#
# Prefer my Java, if available
PATH="jre/bin:"$PATH
java -Xmx512m -cp readerware.jar:lib/hsqldb.jar:lib/jython.jar:lib/javacsv.jar:lib/swingx-all.jar:lib/LinearBarCode.jar:lib/commons-lang.jar:lib/RXTXcomm.jar:lib/jh.jar:lib/log4j.jar:lib/jetty-continuation.jar:lib/jetty-http.jar:lib/jetty-io.jar:lib/jetty-server.jar:lib/jetty-util.jar:lib/servlet-api-2.5.jar:help com.readerware.RWServer -debug $*
Re: Startup Apps
I understand you load the script with the help of "Startup Applications". I'd expect it would create a .desktop file in ~/.config/autostart though whenever I need to make an application start up automatically just for my user I create a custom autostart entry in that folder.
Well, create that entry with a text editor
Names are examples. Adjust autostart-delay to your needs. You can add this entry to system-wide startup apps by placing it in /etc/xdg/autostart.
Well, create that entry with a text editor
Code: Select all
[Desktop Entry]
Name=Readerware
GenericName=Database server
Comment=Star Readerware server
Exec=/path-to/thenameofyourscript
Terminal=false
StartupNotify=false
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Delay=10