It's been a while since I've been on here. I have CumulusMX running on Ubuntu 18.04 server, on an enterprise server, and its running sweet.
My reason for posting is for a friend, who is attempting to run cumulusMX on a Ubuntu 18.04 laptop. He has Cumulus running from the terminal no problem, but what he wants is to create a desktop launcher, to open a terminal and run the program. It sounds quite straight forward but he, and I, have been battling with this, on our respective systems for most of the day.
I have a shell script called "starter.sh" with this -
Obviously "starter.sh" has been made executable and it runs fine from the command line.echo cd /home/dave/cumulusMX/
echo mypassword | sudo -S mono CumulusMX.exe
So then I create "weather station.desktop" in the Desktop folder. This is the code -
I made this executable and trustworthy, but this doesn't work. The terminal flashes into view and quits instantly. The reason that it doesn't work is because the terminal is not in the right directory, even though I've specifically instructed it to be.[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
path = /home/dave/weather-station-test/
Exec=gnome-terminal -- /home/dave/cumulusMX/starter.sh
Name=Weather Station
Comment=Starts the weather station
Does anyone have a solution for this that works? The reason for this is my friend would like to be able to ask his wife to start the weather station if necessary, so this de-skills the process.
Many thanks,
Dave