Unix permission

Bug #1371273 reported by hilaire on 2014-09-18
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Dr. Geo II
Medium
Unassigned

Bug Description

Hi,
I'm trying to make a package for Archlinux but I have one issue.

All files are in /usr/share/drgeo2, and when I launch it as normal user, an error occures.

Got startup errors:
    PrimitiveFailed: primitive #createDirectory: in UnixStore failed
That's because I didn't create MySketches and MyExports in /usr/share/drgeo2.

Is there anyway these files can be created in user home directory ?

Thanks for reading.

http://forum.drgeo.eu/Unix-permission-tp4024466.html

hilaire (hilaire-fernandes) wrote :

The problem comes from DrGeo trying to create user folder in /usr/share/drgeo2.

There are a couple of files with a required RW access to fully exploit the DrGeo capability.
The architecture directory you mentioned is a good idea, in that case DrGeo just need a dedicated startup script whose main action will be to:

- ensure for a 'MyDrGeo' user folder with the following files copied (need of RW access)*, others files (ReadOnly) can be linked to the /usr/share/drgeo2:

Contents/Resources/
├── drgeo.changes*
├── drgeo.image*
├── locale
├── PharoV20.sources
├── UnDotum.ttf
└── wqy-microhei.ttc
MySketches
examples*
MyExports
splash.bmp*

This is a rought idea, that may need some refinement.
I hope it does not need change in DrGeo code (drgeo.image). In that case it can be done for later release.

tags: added: workstation
Changed in drgeo:
status: New → In Progress
hilaire (hilaire-fernandes) wrote :

For an example start up script with read only part of Dr. Geo, read:
http://forum.drgeo.eu/Unix-permission-tp4024466p4024500.html

hilaire (hilaire-fernandes) wrote :

Here a modified version of the script, with the following changes:

- some refactoring
- link examples and SmalltalkSketches
- there is no locales directory in the top hierarchy, it is underneath and already correctly linked

hilaire (hilaire-fernandes) wrote :

Updated version: only check existence of regular file.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers