scratchfoundation / Scratch_1.4

Source Code repository for Scratch 1.4
Other
110 stars 51 forks source link

Remove hard-coded /usr/share/scratch directory expectation #5

Open ngz opened 8 years ago

ngz commented 8 years ago

Hello,

There is currently a restriction on directory for artwork, locale, etc. as these need to be located in "/usr/share/scratch".

Unfortunately, this makes Scratch less usable on some distributions not following FHS (e.g., NixOS or Guix) since it cannot find by itself bundled sprites, backgrounds, sound, languages...

Would it be possible to add an option allowing to set a default directory for shared files?

Thank you.

610t commented 7 years ago

Hi!

I'm BSD family OS user, so I try to port scratch for BSD.

At many BSD software packaging system, we can change install directory from default prefix '/usr/local' to any other directory like '/opt'. Furthermore, many BSD software packaging system must not touch any system directory like '/usr/share'.

When I create FreeBSD lang/scratch port ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216811 ) , I prompt that user create symbolic link from installed directory to '/usr/share/scratch' like: % ln -s %%PREFIX%%/share/scratch /usr/share/scratch

How about use relative directory from Scratch.image?

Thanks in advance.