Eric,
I tried executing
load '~addons/ide/jhs/installer.ijs'
shortcut'jc'
and this Icon was created:
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=jc806
Exec=/usr/libexec/gnome-terminal-server
-e "\"/home/me/Downloads/j64-806/bin/jconsole\""
Path=/home/me
Icon=/home/me/Downloads/j64-806/bin/icons/jgray.png
I Joined the -e line to the Exec line and the display of the icon improved, but
double-clicking the icon had no apparent result on Centos 7.
David
On 4/6/2017 11:26, Eric Iverson wrote:
David, Patrick;
I have just released a new JHS with an improved version of installer.ijs.
With luck this will do a better job of creating icons that work in a wider
range of linux environments (particularly in the ones where problems were
reported).
On Sun, Mar 19, 2017 at 8:48 AM, David Mitchell <[email protected]>
wrote:
I installed J64-806 on Centos 7, activated AVX and ran the jhs installer
script.
The installer script created 3 icons, jc806, jhs806 and jqt806. jqt806
worked fine. Both jc806 and jhs806 failed with "There was an error
launching the application."
The commands in the icons were as follows:
jc806: x-terminal-emulator -e "\"/home/me/Downloads/j64-806/
bin/jconsole\""
jhs806: x-terminal-emulator -e "\"/home/me/Downloads/j64-806/bin/jconsole\"
~addons/ide/jhs/config/jhs.cfg"
I tried the same commands in a terminal window and was told that
x-terminal-emulator was not found.
I did some research and found that x-terminal-emulator does not exist for
Centos 7 and that the simplest fix was to replace x-terminal-emulator in
the command strings with gnome-terminal, as I have Gnome installed.
The updated commands now worked but generated the following message for
jconsole and jhs:
/home/me/Downloads/j64-806/bin/jconsole: /lib64/libtinfo.so.5: no version
information available (required by /home/me/Downloads/j64-806/bin
/jconsole)
This message did not stop jconsole from running.
jhs also had this message:
sh: x-www-browser: command not found
A bit more research found that this could be fixed in ide/jhs/core.jhs by
replacing:
case. 'Linux' do. 2!:0'x-www-browser ',url,' >/dev/null &'
with
case. 'Linux' do. 2!:0'xdg-open ',url,' >/dev/null &'
A different general fix for the URL open might be to parse the result of
this command:
$ cat /usr/share/applications/defaults.list | grep http
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
and plug in firefox, for example.
/David Mitchell
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm