shortcut icon on desktop to launch a downloaded application

Asked by baz

Hello .
I have downloaded a .deb file which is called wspr which stands for amateur radio weak signal communication ,it is installed in my / directory
the software is not installed in the ubuntu sotware center and does not have an icon ,what I usually do is go to places/homefolder/directory/wspr/and click on the executable file which comes up run I click on run and its up and runnig,how would I link it to the icon of my choice on desktop to launch the wspr application,instead of going through all the folders to get it started,like on windows using a shortcut icon, I have used the launch application ,but have trouble with the path and sometimes I get the failed to execute child process ./wspr error

Baz

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Best marcobra (Marco Braida) (marcobra) said :
#1

You simply need to create an app launcher: https://help.ubuntu.com/community/HowToAddaLauncher

Hth

Revision history for this message
baz (delthorp) said :
#2

Thanks marcobra (Marco Braida), that solved my question.

Revision history for this message
baz (delthorp) said :
#3

looks like I pressed the wrong button ,I still haven'y solved my problem
but I am very close, is it possible to ask another follow up question
please sorry for the problems i have caused

Barry

Revision history for this message
baz (delthorp) said :
#4

As a follow up on my first question creating a launcher,

First off I am not trying to launch anything in a browser,the program is by itself ,on the create launcher box I have 3 choices ,application ,application in terminal and location ,the location comes very close to launching /wspr/wspr I get the DO YOU WANT TO RUN "WSPR" OR DISPLAY ITS CONTENTS,if I click run nothing happens it also will not run in terminal ,the display command on the excecutable file is LD_LIBRARY_PATH=./lib python -O wspr.py ,I tried the other way creating a text file on desktop using the terminal commands but still having problems with the path,wspr will launch if I go the the wspr folder in the /directory and click on the wspr executable file ,but I would prefer to launch via the desktop

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Please report here the download web link of the .deb wspr debian package file and i will try to get you the right command to run the python app.

Thank you

Revision history for this message
baz (delthorp) said :
#6

Marco,
This is the web site for the .deb file for linux version http://www.physics.princeton.edu/pulsar/K1JT/

Cheers. Marco

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#7

The shell script that run the python wspr.py need to change dir to WSPR to work so here a solution in the launcher link put:

bash -c "cd /home/ubuntu/WSPR/; ./wspr"

Obviously change the /home/ubuntu/WSPR/ value with your WSPR path

Hth

Revision history for this message
baz (delthorp) said :
#8

Hello Marco,

The above command is not working for me ,what I did find was the
wspr is uppercase so that solved that problem I was getting no such directory when I typed cd /wspr but relised the wspr is WSPR so cd /WSPR and then ls I was in the folder,
But no matter how hard I try I could not work around the command in launcher ,I was using bash -c "cd /WSPR/wspr does not work,
So I went back to sudo nano /WSPR/wspr and I get the execution command LD_LIBRARY_PATH=./lib python -O wspr.py which means I am close ,but I am not sure ,reading the doc file on creating a nano file from terminal I seem to mess it up all the time ctrl + x in nano won't save when I exit,I am not sure what I am doing ,But my wspr file is in /WSPR/wspr not the home directory

Barry