← Back to team overview

openshot.developers team mailing list archive

[Bug 425600] Re: pid.lock should not be on the main directory

 

** Changed in: openshot
       Status: Incomplete => Fix Released

-- 
pid.lock should not be on the main directory
https://bugs.launchpad.net/bugs/425600
You received this bug notification because you are a member of OpenShot
Developers, which is subscribed to OpenShot Video Editor.

Status in OpenShot Video Editor: Fix Released

Bug description:
Hi,
   Debian lenny 5.0 (Stable version) 
   Build Wizard 1.0.6
   OpenShot (version 0.9.29)

All compile went fine. But I have to use root for this wizard to work. When try to execute as normal user:

cheche@casa:/root/openshot/main$ python /root/openshot/main/OpenShot.py 
--------------------------------
   OpenShot (version 0.9.29)
--------------------------------
Traceback (most recent call last):
  File "/root/openshot/main/OpenShot.py", line 28, in <module>
    lock.check_pid()
  File "/root/openshot/main/classes/lock.py", line 54, in check_pid
    fp=open(pidPath, 'w')
IOError: [Errno 13] Permission denied: '/root/openshot/main/pid.lock'


on classes/lock.py check_pid()
 path = os.path.dirname(os.path.abspath(sys.argv[0]))

I think that you should not use this path for the lock file.
  /var/run/ seem more appropiate

I found some info that maybe is suitable for this issue and others:

http://mail.python.org/pipermail/python-list/2003-January/183447.html