how to pass default startup parameters to VM?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

how to pass default startup parameters to VM?

Chris Muller-4
Has anyone noticed that cutting text out of Chrome and trying to paste
it in Squeak does not work at all unless you first paste into a
text-editor first and copy it out of there?

Or, if you simply pass the -textenc utf8 paramter to the VM, all
C&P'ing seems to work just fine.

But I never remember to do it, plus its more to type every time I
start a VM.  So I wnat to put it into the actual bash script.

I thought I could just sneak it into the last line in that file:

LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak" "$@"

changing it to:

LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec
"$BIN/squeak -textenc utf8" "$@"

but that isn't right.  Any suggestions?  Thx.

Reply | Threaded
Open this post in threaded view
|

Re: how to pass default startup parameters to VM?

Eliot Miranda-2
Hi Chris,

damn, I thought I'd fixed this.  Linux right?  I see

r2275 | eliot | 2010-09-04 08:52:10 -0700 (Sat, 04 Sep 2010) | 3 lines

Fix filename character encoding for Mac OS X (in Info.plist; use UTF-8).
Update minimal VMMaker image to latest trunk.

But that's only Mac.  I should fix this for the Spur VM on linux.

On Thu, Feb 12, 2015 at 8:12 AM, Chris Muller <[hidden email]> wrote:
Has anyone noticed that cutting text out of Chrome and trying to paste
it in Squeak does not work at all unless you first paste into a
text-editor first and copy it out of there?

Or, if you simply pass the -textenc utf8 paramter to the VM, all
C&P'ing seems to work just fine.

But I never remember to do it, plus its more to type every time I
start a VM.  So I wnat to put it into the actual bash script.

I thought I could just sneak it into the last line in that file:

LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak" "$@"

changing it to:

LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec
"$BIN/squeak -textenc utf8" "$@"

but that isn't right.  Any suggestions?  Thx.




--
best,
Eliot


Reply | Threaded
Open this post in threaded view
|

Re: how to pass default startup parameters to VM?

Levente Uzonyi-2
In reply to this post by Chris Muller-4
On Thu, 12 Feb 2015, Chris Muller wrote:

> Has anyone noticed that cutting text out of Chrome and trying to paste
> it in Squeak does not work at all unless you first paste into a
> text-editor first and copy it out of there?
>
> Or, if you simply pass the -textenc utf8 paramter to the VM, all
> C&P'ing seems to work just fine.
>
> But I never remember to do it, plus its more to type every time I
> start a VM.  So I wnat to put it into the actual bash script.
>
> I thought I could just sneak it into the last line in that file:
>
> LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak" "$@"
>
> changing it to:
>
> LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec
> "$BIN/squeak -textenc utf8" "$@"
>
> but that isn't right.  Any suggestions?  Thx.

Try replacing the line with this two:

arguments="-textenc utf8 $@"
LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak" $arguments


Levente

>
>

Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: [squeak-dev] how to pass default startup parameters to VM?

Chris Muller-3
> Try replacing the line with this two:
>
> arguments="-textenc utf8 $@"
> LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak"
> $arguments

I don't know why, but it works!  My only wild guess is that exec only
wants two "arguments", the binary and the arguments to that binary..?
Clearly I do not know much about bash.

Many thanks.

Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: [squeak-dev] how to pass default startup parameters to VM?

Eliot Miranda-2
Hi Chris,

    check out the new r3254 VMs.  These should provide utf-8 by default.  And yes, the issue was that the quotes turned everything into a single argument.    exec "$BIN/squeak" -textenc utf8 "$@" would have worked also.

On Thu, Feb 12, 2015 at 12:23 PM, Chris Muller <[hidden email]> wrote:
> Try replacing the line with this two:
>
> arguments="-textenc utf8 $@"
> LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak"
> $arguments

I don't know why, but it works!  My only wild guess is that exec only
wants two "arguments", the binary and the arguments to that binary..?
Clearly I do not know much about bash.

Many thanks.




--
best,
Eliot