User Tools

Site Tools


linux:installscratch

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
linux:installscratch [2014/02/24 23:01] – created rlunarolinux:installscratch [2014/02/24 23:57] rlunaro
Line 43: Line 43:
 ===== Third step: fix start script ===== ===== Third step: fix start script =====
  
-The last step is to fix the start script. I madre the following changes: +The last step is to fix the start script, ''/usr/local/bin/scratch'', made the following changes (better to save a copy of the original):
- +
-**When it says:** +
- +
-<code bash> +
-#!/bin/sh +
-# File:            scratch +
-# Description:     Script to start the Squeak VM binary with the scratch image +
-# Original Author: Bert Freudenberg +
-# Adapted by:      Miriam Ruiz +
- +
-VM_VERSION=`find /usr/lib/squeak/ -name "squeakvm" -type f|cut -f5 -d"/"+
-SQ_DIR=/usr/lib/squeak/$VM_VERSION +
-VM="$SQ_DIR/squeakvm" +
-VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/plug +
-IMAGE="/usr/share/scratch/Scratch.image" +
-IMOPTIONS="" +
-DOCUMENT="" +
-WRAPPER="" +
- +
- +
-</code> +
- +
- +
-**put:**+
  
 <code bash> <code bash>
Line 88: Line 64:
  
 And this is it. If you want, you can do more fixings like creating a fancy starting icon, etc. But the hard stuff is already done. And this is it. If you want, you can do more fixings like creating a fancy starting icon, etc. But the hard stuff is already done.
 +
 +===== Final step: put it in your local language =====
 +
 +I've discovered that scratch didn't appear in the local language, but in english. Debugging the launching of the application, I've discovered that it keeps searching in the directory ''/usr/share/scratch'' despite it is installed in ''/usr/local/share/scratch''. A symbolic link resolved the issue:
 +
 +<code bash>
 +oktopus:/usr/share # ln -s /usr/local/share/scratch/ scratch
 +</code>
  
  
  
  
linux/installscratch.txt · Last modified: 2022/12/02 22:02 by 127.0.0.1