[Glass] GemTools on Ubuntu system

Trussardi Dario Romano dario.trussardi at tiscali.it
Wed Apr 10 03:11:43 PDT 2019


Ciao,
	
	sorry but, before complicating the question, I wanted to understand the issue well.


>> 	I don't have the GemTools directory.
>> 
>> 	I have only copy the:		 GemTools-1.0-beta.8.7-3101.app    from a MacBook system 		to Ubuntu 18.04 LTS system
> That's what I expected you to do ..
> 

>> 	I don't understand what do you do in the next lines.

> in your GemTools*.sh script you should see the lines that are listed below (without the leading plusses) ..
	
	This point is not clear to me.

	My GemTools*.sh   is set to ( see point A )

> . this is the code where zenity is used and you should be able to remove the conditional block that calls zenity ... if you don't have any code that looks (exactly) like this script code,

> then send me your GemTools*.sh script that is in the GemTools.app directory.

	see point A.


>>> foos:GemTools-1.0-beta.8.7-340xx.app>./GemTools-1.0-beta.8.7-32x.sh &
	When i run ( without zenity code ) the  GemTools-1.0-beta.8.7-3101.app>./GemTools-1.0-beta.8.7-31x.sh &

		the system report only:

		[ 1 ] 12345
			could not find module vm-display-X11	
>>> [1] 12955
>>> foos:GemTools-1.0-beta.8.7-340xx.app>+ dirname ./GemTools-1.0-beta.8.7-32x.sh
>>> + readlink -f .
>>> + ROOT=/export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app
>>> + LINUX=/export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Linux686
>>> + RESOURCES=/export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Resources
>>> + gvfs-set-attribute ./GemTools-1.0-beta.8.7-32x.sh metadata::custom-icon file:///export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Resources/Squeak.png
>>> + ls /export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Resources/GemTools-1.0-beta.8.7-32x.image
>>> + wc -l
>>> + image_count=1
>>> + 
>>> + [ 1 -ne 1 ]
>>> + image=/export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Resources/GemTools-1.0-beta.8.7-32x
>>> + exec /export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Linux686/squeak -plugins /export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Linux686 -encoding latin1 -vm-display-X11 /export/foos1/users/dhenrich/GemTools/GemTools-1.0-beta.8.7-340xx.app/Contents/Resources/GemTools-1.0-beta.8.7-32x
>>> + which zenity
>>> /usr/bin/zenity
>>> 

>>> Here's the listing of the GemTools startup script:

	Point A)		the following lines corresponds to my	 GemTools-1.0-beta.8.7-31x.sh
>>> #!/bin/sh
>>> 
>>> set -x
>>> 
>>> # path
>>> ROOT=`readlink -f $(dirname $0)`
>>> LINUX="$ROOT/Contents/Linux686"
>>> RESOURCES="$ROOT/Contents/Resources"
>>> 
>>> # icon (note: gvfs-set-attribute is found in gvfs-bin on Ubuntu
>>> # systems and it seems to require an absolute filename)
>>> gvfs-set-attribute \
>>> 	"$0" \
>>> 	"metadata::custom-icon" \
>>> 	"file://$RESOURCES/Squeak.png" \
>>> 		2> /dev/null
>>> 
>>> # zenity is part of GNOME
>>> image_count=`ls "$RESOURCES"/*.image 2>/dev/null |wc -l`
>>> if which zenity &>/dev/null && [ "$image_count"  -ne 1 ]; then
>>> 	olddir=`pwd`
>>> 	cd "$RESOURCES"
>>> 	image=`zenity --title 'Select an image' --file-selection --file-filter '*.image' --file-filter '*'`
>>> 	cd "$olddir"
>>> else
>>> 	image="$RESOURCES/GemTools-1.0-beta.8.7-31x.image"
>>> fi
>>> 
>>> # execute
>>> exec "$LINUX/squeak" \
>>> 	-plugins "$LINUX" \
>>> 	-encoding latin1 \
>>> 	-vm-display-X11 \
>>> 	"$image"


>>> .. and I'd think that you could just directly set the image file and skip the zenity code altogether and just use the line `image="$RESOURCES...` to set the image ... eliminating the zenity code works for my on Ubuntu 16.04 ... 

	
>> 	I eliminating the zenity code and define the $RESOURCES 	
>> 	
>> 	but  the	 ./  GemTools-1.0-beta.8.7-31x.sh 	report:
>> 
>> 		   could not find module vm-display-X11
>>  		Annullato (core dump creato)
> Okay, it sounds like you have not installed X support on your client machine ... To install the x support use the highlighted shell script commands in [1], [2]. and [3].
> 
	For :	https://github.com/GsDevKit/GsDevKit_home/blob/master/bin/utils/installOsPrereqs#L39-L59	
		
		do you intend to run only line 39 on line 59?


	But		tODE client 		works well.

		So the X support is loaded on the client machine !!!! ????

	Thanks,

		Dario

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20190410/ecb13c97/attachment.html>


More information about the Glass mailing list