Re: gnome-list Digest, Vol 67, Issue 12 item 1



gnome-list-request gnome org wrote:
Send gnome-list mailing list submissions to
	gnome-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.gnome.org/mailman/listinfo/gnome-list
or, via email, send a message with subject or body 'help' to
	gnome-list-request gnome org

You can reach the person managing the list at
	gnome-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gnome-list digest..."


Today's Topics:

   1. Alacarte command help (John Jason Jordan)
   2. Re: Alacarte command help (Ravi Kumar)


----------------------------------------------------------------------

Message: 1
Date: Fri, 27 Nov 2009 18:38:07 -0800
From: John Jason Jordan <johnxj comcast net>
To: Gnome list <gnome-list gnome org>
Subject: Alacarte command help
Message-ID: <20091127183807 23916c7b johnxj comcast net>
Content-Type: text/plain; charset=US-ASCII

Fedora 12, Gnome 2.28.0

I have an application that I need for drawing syntax trees in
linguistics. It is a java application and the command is:

java -Xmx256m -Xms64m -jar TreeForm.jar

The TreeForm.jar archive resides in /home/jjj/Software. If I use the
command line and change directory to /home/jjj/Software, then execute
the command, the program launches and all of the buttons on its menu
appear. If I launch it from someplace else and use the command:

java -Xmx256m -Xms64m -jar /home/jjj/Software/TreeForm.jar

The buttons do not appear.
The TreeForm folder contains a subfolder containing images of the
buttons. For some reason the application finds the folder when it is
launched from the command line inside the /home/jjj/Software/TreeForm
folder, but not if it is called from outside that folder.
This is very strange, but it doesn't matter to me as long as I get the
buttons.
I opened Alacarte to create a launch item. It launches, but without the
buttons. The command I started with was:

java -Xmx256m -Xms64m -jar /home/jjj/Software/TreeForm.jar

In an attempt to fix the problem, I changed the command to:

cd /home/jjj/Software | java -Xmx256m -Xms64m -jar TreeForm.jar

However, this gives me an error message 'failed to execute child
process "cd" (No such file or directory).'

I'm trying to get the launch menu command to change to the directory
first, then launch the .jar archive. Apparently I haven't got the
syntax quite right. Clicking on the Help button in Alacarte gives me
'The requested URI "ghelp:user-guide#menu-editor" is invalid.'

Can anyone help?


------------------------------

Message: 2
Date: Sat, 28 Nov 2009 16:16:44 +0530
From: Ravi Kumar <ra21vi gmail com>
To: John Jason Jordan <johnxj comcast net>
Cc: Gnome list <gnome-list gnome org>
Subject: Re: Alacarte command help
Message-ID:
	<9a63e8920911280246o5fd228a6kcf30e005abaab268 mail gmail com>
Content-Type: text/plain; charset="iso-8859-1"

On Sat, Nov 28, 2009 at 8:08 AM, John Jason Jordan <johnxj comcast net>wrote:

Fedora 12, Gnome 2.28.0

I have an application that I need for drawing syntax trees in
linguistics. It is a java application and the command is:

java -Xmx256m -Xms64m -jar TreeForm.jar

The TreeForm.jar archive resides in /home/jjj/Software. If I use the
command line and change directory to /home/jjj/Software, then execute
the command, the program launches and all of the buttons on its menu
appear. If I launch it from someplace else and use the command:

java -Xmx256m -Xms64m -jar /home/jjj/Software/TreeForm.jar

The buttons do not appear.

The TreeForm folder contains a subfolder containing images of the
buttons. For some reason the application finds the folder when it is
launched from the command line inside the /home/jjj/Software/TreeForm
folder, but not if it is called from outside that folder.

This is very strange, but it doesn't matter to me as long as I get the
buttons.

I opened Alacarte to create a launch item. It launches, but without the
buttons. The command I started with was:

java -Xmx256m -Xms64m -jar /home/jjj/Software/TreeForm.jar

In an attempt to fix the problem, I changed the command to:

cd /home/jjj/Software | java -Xmx256m -Xms64m -jar TreeForm.jar

Read more about the pipe (|) in Linux/Unix here -
http://en.wikipedia.org/wiki/Pipeline_(Unix)

Pipes are not what you want to use.
You should write a shell script for launch. Lets say file Treeform.sh
The  content would be :
#!/bin/bash

APP_HOME=/home/jjj/Software/
cd $APP_HOME
java -Xmx256m -Xms64m -jar TreeForm.jar

#-- END --

This way your application would have working directory of what you set and
it would find images subdir in it.


I would not complicate matters.
Just go 'System - Preferences - Main menu' and then add the item to your menu.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]