r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Linux] group for linux REBOL users

Graham
11-Dec-2006
[1010x3]
write %test.r {rebol [] print "hello"}
launch join what-dir %test.r

and it complains it can't find the file.
actually, 

launch http://www.valid.com/rebol.ralso fails
In windows, launch value .. value is taken as a parameter for the 
encapped application.  In Iinux, it demands a script.
Gabriele
11-Dec-2006
[1013x3]
i believe there are bugs in launch on linux, and i don't remember 
if they are fixed for 2.6.2... let me check rambo
#3231 is marked as fixed, but I'm not sure if anyone has tested it.
then there are #3581 and #3151, but since you are using what-dir 
they should not apply.
Graham
11-Dec-2006
[1016x2]
it launches a new process .. but can't find the script.
I didn't realise that such a fundamental thing was broken on the 
linux sdk :(
Gabriele
11-Dec-2006
[1018x2]
you can always use call directly
anyway, i'll test this and make sure it works. IIRC the Detective 
has issues with launch/quit on Linux too, but it hasn't been a huge 
problem for me yet.
Graham
11-Dec-2006
[1020]
this means I have to know the name of the calling application ...
Gabriele
11-Dec-2006
[1021]
launch has to know the name too. so if you don't... it doesn't either. 
i'm pretty sure launch is using system/options/boot
Graham
11-Dec-2006
[1022x2]
I just want to spawn another instance of my encapped application 
...
Ok, I'll check system/options/boot
Gabriele
11-Dec-2006
[1024x2]
call reduce [system/options/boot "argument"]
should give you "argument" in system/options/args and system/script/args 
(usual differences between the two apply)
Graham
11-Dec-2006
[1026]
Also, the AGG font demos on the desktop appear to be broken.
Gabriele
11-Dec-2006
[1027]
fonts require absolute path on linux
Graham
11-Dec-2006
[1028]
would you explain that ?
Gabriele
11-Dec-2006
[1029]
this will eventually be fixed but it's not easy (needs a different 
build for each distro... so the final solution is R3)
Graham
11-Dec-2006
[1030]
when you specify a font, you need to specifiy the abs path to that 
font ?
Gabriele
11-Dec-2006
[1031x2]
exactly, to the ttf file (for AGG only, not face/text)
Linux does not have any api to get to the ttf from the font name.
Graham
11-Dec-2006
[1033]
so, for vectorial text, you specify the font with the absolute path.
Gabriele
11-Dec-2006
[1034]
exactly, that should work. refer to Cyphre for more details (i think 
agg text on unix is still somewhat experimental)
Graham
11-Dec-2006
[1035x2]
I see.
Is OSX any better?
Gabriele
11-Dec-2006
[1037]
in principle yes, but i don't know if it is supported yet.
Graham
11-Dec-2006
[1038x3]
Ok.
Do you know how to print in Linux ?
is it write to %lp ?
Gabriele
11-Dec-2006
[1041x2]
best way is call the lpr command
if you know you are on kde, you can also call kprint (or was it kprinter) 
and it even displays a nice ui for print options.
Graham
11-Dec-2006
[1043x2]
gnome
I just want to send some postscript to the attached postscript printer 
on the parallel port.
Gabriele
11-Dec-2006
[1045x4]
don't know if gnome has a print command. lpr should work almost anywhere 
though.
well, you can in principle write to %/dev/lp0
however, you need permissions to write there and you need to know 
that the printer is actually attached to lp0
using lpr you can print on any attached printer as long as it is 
configured (ghostscript will take care of rendering on non-ps printers)
Graham
11-Dec-2006
[1049]
ahh... sounds good!
Gabriele
11-Dec-2006
[1050x2]
also... since i think all distros are now using CUPS, you might interface 
to it directly.
http://www.cups.org/
Graham
11-Dec-2006
[1052x2]
I'll have a look at all this. Thanks.
I rambo'd my Linux sdk launch problem.
Graham
13-Dec-2006
[1054]
Anyone know how to get my Vmware Fedora Core 6 image to run at 1024x768 
instead of 800x600 ?
Henrik
13-Dec-2006
[1055]
I don't know, but perhaps X thinks your VMWare "monitor" can't handle 
more than 800x600. you probably need to change some settings within 
VMWare or in x.org configuration
Graham
14-Dec-2006
[1056x4]
Downloaded another vmware appliance with Fedora 6, that was set to 
default to 1024x768.  Archive was not corrupted, but vmware can't 
find the image!
Is there support for Type I fonts in Linux and View/AGG ?
On the 23rd March, Cyphre posted an example of using true type fonts. 
 I tried it on Fedora Core 6, substituting other true type fonts 
I had, and correcting the paths as appropriate and get a blank screen 
:(
here it is http://www.compkarori.com/vanilla/display/AGG