David, Thanks for this contribution. It is now in the latest JHS addons and will be picked up in the next beta release.
On Mon, Mar 5, 2018 at 7:30 AM, David Mitchell <[email protected]> wrote: > Here are updates for ~addons/ide/jhs/installer.ijs that create functional > shortcuts for Red Hat and Centos 7 Linux. I have tested these changes on > Windows 10 Pro, Centos 7 and Ubuntu 16.04.3. > > >diff installer.ijs C:\Users\me\Downloads\j\j64-80 > 7-180224\addons\ide\jhs\installer.ijs > 128c128 > < NB. Linux (Ubuntu) > --- > > NB. Linux > 140,151d139 > < NB. Linux (RedHat and Centos) > < desktoprh=: 0 : 0 > < [Desktop Entry] > < Version=1.0 > < Type=Application > < Terminal=<TT> > < Name=<N> > < Exec=<E> > < Path=<W> > < Icon=<I> > < ) > < > 191,213c179,180 > < rh=. 1<#fread '/etc/redhat-release' > < if. rh do. > < if. type-:'jqt' do. > < e=. c > < else. > < e=. c,' ',arg > < end. > < else. > < if. type-:'jqt' do. > < e=. '"',c,'"' > < else. > < e=. '<T> -e "\"<C>\"<A>"'rplc '<T>';(get_terminal'');'<C>';c;'<A>';arg > < end. > < end. > < > < if. rh do. > < r=. desktoprh rplc '<N>';n > < r=. r rplc '<E>';e > < r=. r rplc '<W>';W > < r=. r rplc '<I>';I,icon > < r=. r rplc '<TT>';(type-:'jc'){'false';'true' > < r fwrite f > < 2!:0'chmod +x ',f > --- > > if. type-:'jqt' do. > > e=. '"',c,'"' > 215,220c182 > < r=. desktop rplc '<N>';n > < r=. r rplc '<E>';e > < r=. r rplc '<W>';W > < r=. r rplc '<I>';I,icon > < r fwrite f > < 2!:0'chmod +x ',f > --- > > e=. '<T> -e "\"<C>\"<A>"'rplc '<T>';(get_terminal'');'<C>';c;'<A>';arg > 221a184,189 > > r=. desktop rplc '<N>';n > > r=. r rplc '<E>';e > > r=. r rplc '<W>';W > > r=. r rplc '<I>';I,icon > > r fwrite f > > 2!:0'chmod +x ',f > > 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
