Using gnome-terminal is the right solution for your installation. For a
mint install it is mate-terminal. And for others it is whatever the user
has as their default terminal.

Thanks for checking for the LF as that had also puzzled me.

Older centos versions would have a result of gnome-terminal and that would
work. Newer versions of centos (and others) have the gnome-terminal-server
result that is misleading.

I'll have another stab at this tomorrow.

On Thu, Apr 6, 2017 at 4:23 PM, David Mitchell <[email protected]>
wrote:

>    get_terminal_jinstaller_''
> /usr/libexec/gnome-terminal-server
>
>    LF e. get_terminal_jinstaller_''
> 1
>
> The two methods I have had work for me are these:
>
> 1. Use gnome-terminal:
>
> Exec=/usr/bin/gnome-terminal -e "\"/home/me/Downloads/j64-806/
> bin/jconsole\""
> Exec=/usr/bin/gnome-terminal -e "\"/home/me/Downloads/j64-806/bin/jconsole\"
> ~addons/ide/jhs/config/jhs.cfg"
>
> 2. use a leading shebang on the icon (from Patrick)
>
> #!/usr/bin/env xdg-open
>
> and use these changes also:
>
> Terminal=true
> Exec=/home/me/Downloads/j64-806/bin/jconsole
>
> David
>
>
> On 4/6/2017 15:34, Eric Iverson wrote:
>
>> Thanks for the feedback. The variety in linux installs continues to amaze
>> and puzzle me.
>>
>> The problem is to determine the right command to start a terminal session.
>>
>> Please try the following for me:
>>
>> start jconsole
>>    load'~addons/ide/jhs/installer.ijs'
>>    get_terminal_jinstaller_''
>>
>> Thanks.
>>
>> I've had a quick look at gnome-terminal-server and have a good idea of
>> where I went wrong, But haven't a clue about what to do instead.
>>
>>
>> On Thu, Apr 6, 2017 at 3:14 PM, David Mitchell <[email protected]>
>> wrote:
>>
>> 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
>>>
>>> ----------------------------------------------------------------------
>> 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

Reply via email to