Page 1 of 1

creating desktop shortcut in Ubuntu

PostPosted: Sun Sep 09, 2018 10:31 pm
by jk64
Hello
I am using pcgen ver 6.06.01 on a system with Ubuntu. The hard drive was failing so I been using an external hard drive with Ubuntu and I know very little about linux
I can run pcgen from terminal with the command java -jar pcgen.jar. It works I cant really complain but is there a way to create a desktop shortcut?

Re: creating desktop shortcut in Ubuntu

PostPosted: Mon Sep 10, 2018 12:24 am
by Nylanfs
This is the best resource for getting Ubuntu help I have found.



You have to install gnome-panel package which comes up with ability to create a application launcher on the desktop or wherever you like. Add --no-install-recommends suffix to prevent other package that aren't necessary.

sudo apt-get install --no-install-recommends gnome-panel

After installing gnome-panel, use following command to create a launcher.

gnome-desktop-item-edit --create-new ~/Desktop

Once you execute the above command, create launcher application will be opened.

Image

In Type field "Application" will be a default value. If you're creating launcher for application which has no gui, that runs in terminal like VIM editor then you need to select "Application in Terminal".
In Name field type application name.
In Command field type the executable command which open your application.
Comment field is optional.

To set icon, click on the small box on the top left side near name field and choose a image for it. Click "OK" if you are done.

Re: creating desktop shortcut in Ubuntu

PostPosted: Mon Sep 10, 2018 2:27 am
by jk64
Nylanfs wrote:This is the best resource for getting Ubuntu help I have found.



You have to install gnome-panel package which comes up with ability to create a application launcher on the desktop or wherever you like. Add --no-install-recommends suffix to prevent other package that aren't necessary.

sudo apt-get install --no-install-recommends gnome-panel

After installing gnome-panel, use following command to create a launcher.

gnome-desktop-item-edit --create-new ~/Desktop

Once you execute the above command, create launcher application will be opened.

Image

In Type field "Application" will be a default value. If you're creating launcher for application which has no gui, that runs in terminal like VIM editor then you need to select "Application in Terminal".
In Name field type application name.
In Command field type the executable command which open your application.
Comment field is optional.

To set icon, click on the small box on the top left side near name field and choose a image for it. Click "OK" if you are done.


Not sure what went wrong but I get pop up about program not trusted with the choice of cancel or launch. I clicked launch and nothing happens