X-1.0rc2: Ubuntu: other users can't run sikuli-ide after first user did it --- workaround

Bug #754020 reported by Alex Prengel
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Low
RaiMan

Bug Description

**** the workaround from comment #4

Run this before starting sikuli from the command line...

mkdir libs

After starting Sikuli IDE, you should see some files in libs instead of /tmp/tmplib

-----------------------------------

In Sikuli X 1.0rc2 on Ubuntu Lucid 64 bit and 32 bit systems, users logging in after a user who has run sikuli-ide and who try to run it also get error messages like:
[error] Can't load native lib JXGrabKey
java.io.FileNotFoundException: /tmp/tmplib/libJXGrabKey.so (Permission denied)

This is caused by Sikuli writing cache files below /tmp/tmplib that subsequent users don't have permission to access. Sikuli should either clean this up on exit or create separate cache directories for each username running it.

Tags: ubuntu
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: X-1.0rc2: Ubuntu: other users can't run sikuli-ide after first user did it

So why shouldn't that be in a users home directory?

summary: - users logging in after first user can't run sikuli-ide
+ X-1.0rc2: Ubuntu: other users can't run sikuli-ide after first user did
+ it
Revision history for this message
Alex Prengel (alexp) wrote : Re: [Bug 754020] Re: X-1.0rc2: Ubuntu: other users can't run sikuli-ide after first user did it

On Fri, 2011-04-08 at 03:37 -0400, RaiMan wrote:
> So why shouldn't that be in a users home directory?
>
> ** Summary changed:
>
> - users logging in after first user can't run sikuli-ide
> + X-1.0rc2: Ubuntu: other users can't run sikuli-ide after first user did it
>

That's fine with me. I just installed from
Sikuli-X-1.0rc2-linux-x86_64.zip and it set the cache to /tmp/tmplib/.

                                          Alex

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: X-1.0rc2: Ubuntu: other users can't run sikuli-ide after first user did it

Ok, that was meant for the fix the developers have to make.

I suggest to take the users home directory as the temp location instead (like on Windows).

Revision history for this message
niknah (hankin0) wrote :

Run this before starting sikuli from the command line...

mkdir libs

You should see some files in libs instead of /tmp/tmplib

This is in...
java/com/wapmx/nativeutils/jniloader/DefaultJniExtractor.java:getJniDir()

RaiMan (raimund-hocke)
summary: X-1.0rc2: Ubuntu: other users can't run sikuli-ide after first user did
- it
+ it --- workaround
description: updated
Revision history for this message
YeTr2 (yetr2quared) wrote :

Forget putting it in the user's directory, why can't we just load the files from the ./libs/ directory where they already exist instead of copying them?

I guess in the meantime I'll have to script around this issue.

also, what of /tmp/sikuli/ ? as we going to run into the same issue with sharing over this at some point?

RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
tags: added: ubuntu
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.