Startup Apps

Questions about other topics and general discussion about LMDE
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
Setchp
Level 1
Level 1
Posts: 3
Joined: Tue Jan 24, 2023 1:35 pm

Startup Apps

Post by Setchp »

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?
User avatar
all41
Level 18
Level 18
Posts: 8635
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Startup Apps

Post by all41 »

Is the shell script executable?
Usually right-click on the file--Properties/Permissions will show
Everything is difficult before it gets easy.
Setchp
Level 1
Level 1
Posts: 3
Joined: Tue Jan 24, 2023 1:35 pm

Re: Startup Apps

Post by Setchp »

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.
User avatar
MiZoG
Level 5
Level 5
Posts: 698
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Startup Apps

Post by MiZoG »

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.
Setchp
Level 1
Level 1
Posts: 3
Joined: Tue Jan 24, 2023 1:35 pm

Re: Startup Apps

Post by Setchp »

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:

*****************************************************************************************************************

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 $*
*************************************************************************************************************************
User avatar
MiZoG
Level 5
Level 5
Posts: 698
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: Startup Apps

Post by MiZoG »

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

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
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.
Post Reply

Return to “Other Topics & Open Discussion”