Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How To Get Terminal to Open, Launch a Program, and Stay Open At Startup?

Writer Mia Lopez

Specifically: I think I need the terminal to open and have './vert/vertcoin-qt' entered into the Terminal for the program to start.

I have a crypto coin wallet I'd like to open up at startup.
I can start up the wallet manually with no issue by opening a Terminal window and typing...

./vert/vertcoin-qt

I tried putting the code below into a file called 'wallet.sh',

#!/bin/bash
gnome-terminal -e
./vert/vertcoin-qt

I gave the .sh file permissions with...

chmod o+r wallet.sh

Then I put the path to the wallet.sh file in the 'Startup Applications' launcher.
When I do a restart I get the 'loading' screen for the wallet but also a message that says...
Cannot obtain a lock on the data directory /home/eagle/.vertcoin. Vertcoin Core is probably already running.

After the computer has started up like this nothing I do starts the wallet unless I disable the startup task and do a restart.

I've tried launching just the wallet's vertcoin-qt program from the Startup Applications program with no results.

1 Answer

Scripts should be called with the full path name to the file as starting with ./vert/vertcoin-qt would have to be in the path that you are in. However, the system doesn't necessarily start in the same folder as you, so giving it the full path name will help it launch from any location. Then add exec $SHELL to keep the terminal open after the script runs.

#!/bin/bash
gnome-terminal -x bash -c "/full/path/to/vert/vertcoin-qt; exec $SHELL"

Make sure that you change /full/path/to to the actual path to where the script is.

Hope this helps!

5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy