I installed a program (called TMXValidator) from a BIN file. It installed into a folder TMXValidator in my personal home directory, but no menu item was created. I found the folder and was able to run the program by clicking on the file TMXValidator.sh.
I then created a link to this file. The link was created in the same folder. I tested it and it ran the program. I then moved the link to the desktop, and it would no longer run the program. It opens the Run dialog but does not respond when I click Run.
I opened the link in a text editor and saw:
#!/bin/sh
#/*******************************************************************************
# * Copyright (c) 2005, 2006 Maxprograms
# * All rights reserved. This program and the accompanying materials
# * are made available under the terms of the Eclipse Public License v1.0
# * which accompanies this distribution, and is available at
# * http://www.eclipse.org/legal/epl-v10.html
# *
# * Contributors:
# * Rodolfo M. Raya - initial API and implementation
# * Geraldine Lin - Chinese translations
# *******************************************************************************/
CP="/home/robin/TMXValidator/lib/tmx.jar:/home/robin/TMXValidator/lib/jdom.jar:/home/robin/TMXValidator/lib/xercesImpl.jar:/home/robin/TMXValidator/lib/xml-apis.jar:/home/robin/TMXValidator/lib/resolver.jar:/home/robin/TMXValidator/lib/GTK/swt.jar"
java -Xmx999M -cp $CP com.maxprograms.gui.TMXValidatorGUI $1 $2 $3 $4 $5 $6
I'd be grateful if someone couldhelp me to:
- get the link to run from the desktop
- insert the item in the main menu
TIA
Rob
How do I make a link work and insert it into menu?
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How do I make a link work and insert it into menu?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How do I make a link work and insert it into menu?
That looks a bit hard to decifer
Make a new link from the desktop
This should also work in the menu
(I don't really know what kind of link you made....)
Make a new link from the desktop
This should also work in the menu
(I don't really know what kind of link you made....)
Re: How do I make a link work and insert it into menu?
How do I make a link from the desktop? I made the original link by right-clicking on the program icon in its folder and it was automatically created in the same folder. I copied it to the desktop and it no longer ran, though I could open the Run dialog.Husse wrote:That looks a bit hard to decifer
Make a new link from the desktop
This should also work in the menu
(I don't really know what kind of link you made....)
I can't understand the detail of the link script, but I can see that the full path is in the link, not a relative path.
Re: How do I make a link work and insert it into menu?
Make a launcher on the desktop, and move the file back to the original folder, as it is probably symlinked to something.
Then make the desktop launcher run the file: sh /path/to/file/here
Then make the desktop launcher run the file: sh /path/to/file/here
Re: How do I make a link work and insert it into menu?
Both yes and no if I read it right, but MagnusB's suggestion should workthe full path is in the link
Re: How do I make a link work and insert it into menu?
I right-clicked the desktop and opened the dialog box. I entered a name and then browsed to the file which runs the program (/home/robin/TMXValidator/tmxvalidator.sh). The desktop icon was created, but when I click on it nothing happens. No Run dialog box appears, unlike my problem with the link created in the program folder, which -- when moved to the Desktop -- would still open the Run dialog, but would not run the program.
This is what the link looks like if opened in a text editor:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=TMXValidator
Type=Application
Terminal=false
Icon[en_GB]=gnome-panel-launcher
Exec=/home/robin/TMXValidator/tmxvalidator.sh
Name[en_GB]=TMXValidator
Icon=gnome-panel-launcher
GenericName[en_GB]=
This is what the link looks like if opened in a text editor:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=TMXValidator
Type=Application
Terminal=false
Icon[en_GB]=gnome-panel-launcher
Exec=/home/robin/TMXValidator/tmxvalidator.sh
Name[en_GB]=TMXValidator
Icon=gnome-panel-launcher
GenericName[en_GB]=
Re: How do I make a link work and insert it into menu?
What if Terminal=true ?Terminal=false
Re: How do I make a link work and insert it into menu?
It opens a terminal which immediately closes. Just time to get the beginning of a multi-line error message beginning "Error in...". Seems logical.Husse wrote:What if Terminal=true ?Terminal=false
Re: How do I make a link work and insert it into menu?
Look a this
There is no path hereCP="/home/robin/TMXValidator/lib/tmx.jar:/home/robin/TMXValidator/lib/jdom.jar:/home/robin/TMXValidator/lib/xercesImpl.jar:/home/robin/TMXValidator/lib/xml-apis.jar:/home/robin/TMXValidator/lib/resolver.jar:/home/robin/TMXValidator/lib/GTK/swt.jar"
java -Xmx999M -cp $CP com.maxprograms.gui.TMXValidatorGUI $1 $2 $3 $4 $5 $6
If you added the path it might work. The path would be /home/robin/ I guessCP com.maxprograms.gui.TMXValidatorGUI
Re: How do I make a link work and insert it into menu?
No, it doesn't change anything.Husse wrote:Look a thisThere is no path hereCP="/home/robin/TMXValidator/lib/tmx.jar:/home/robin/TMXValidator/lib/jdom.jar:/home/robin/TMXValidator/lib/xercesImpl.jar:/home/robin/TMXValidator/lib/xml-apis.jar:/home/robin/TMXValidator/lib/resolver.jar:/home/robin/TMXValidator/lib/GTK/swt.jar"
java -Xmx999M -cp $CP com.maxprograms.gui.TMXValidatorGUI $1 $2 $3 $4 $5 $6If you added the path it might work. The path would be /home/robin/ I guessCP com.maxprograms.gui.TMXValidatorGUI
But it's not really what we are looking to do, is it? We are looking at how to create a link that works through the GUI.