-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jonathan Isom wrote:
> What about Trying it out as a non-root user. executing freevo from
> a tar ball will not run. I do see the point but it would be nice
> if it would not crash starting up from the exetracting directory.
> So the are three locations for admin /var , for normal user
> ~/.freevo, all else fail either /tmp or ./ for uninstalled tryout.
The point is:
1 ) if you are running freevo as a non root user then you need to
change the permissions on files and devices or add the user to a video
and maybe an audio group.
2) If there is a cron job that cleans up /tmp such as "find /tmp -type
f -mtime +7 -exec rm -f {} \;" then you will lose your logos in a week.
Anyway I see your point. So...
I've just committed a change that will, hopefully, only use /tmp as a
last resort for the files. I can't test this 100% because I'm using
directfb and it only runs as root but it looks good up to the point of
starting freevo. The changes are not quite complete as some of the
setting are not yet changed and I've left in some test messages.
If you fancy testing this it would be good.
Duncan
>
> Later
>
> Jonathan
>
> On 8/7/07, Duncan Webb <[EMAIL PROTECTED]> wrote:
>>> Thanks Adam and Tanja for the help. i reverted that file to the
>>> previous revision.
>>>
>>> Later
>>>
>>> Jonathan
>>>
>>> On 8/6/07, Tanja <[EMAIL PROTECTED]> wrote:
>>>> Same problem here. As Adam already pointed out, this is
>>>> introduced with this patch:
>>>>
https://sourceforge.net/tracker/index.php?func=detail&aid=1767785&group_id=46652&atid=446895
>>>>
>>>>
>>>> Would I have to define OS_CACHEDIR in local_conf.py? I wonder
>>>> why not use FREEVO_CACHEDIR instead of OS_CACHEDIR for this?
>>>>
>>>> Regards Tanja
>>>>
>>>> Adam Charrett schrieb:
>>>>> On Mon, 2007-08-06 at 20:48 +0200, Pascal Schirrmann wrote:
>>>>>
>>>>>> Duncan Webb a écrit :
>>>>>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>>>>>
>>>>>>> Jonathan Isom wrote:
>>>>>>>
>>>>>>>>>>> OSError: [Errno 13] Permission denied:
>>>>>>>>>>> '/var/cache/xmltv/logos'
>>>>>>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Same problem here, not check further : after installing
>>>>>> the svn
>>>> version
>>>>>> 9803 (did work with the revision 9801), I did obtain such
>>>>>> a message
>>>> at
>>>>>> start : cannot create /var/cache/xmltv (permission
>>>>>> denied).
>>>>> The problem is version 9802 of freevo_config.py change at
>>>>> line 1976 to simply check it /var/cache/xmltv existed and
>>>>> if not create it, the previous version checked if it
>>>>> existed and if not used /tmp instead.
>>>>>
>>>>> Duncan doesn't see it as he's running freevo as root.
>>>>>
>>>>> Looks like some more logic is required here, a try: except:
>>>>> block to catch the permission denied and use /tmp instead.
>> IMHO using /tmp as a fall back is a poor choice for static data,
>> better is to use ~/.freevo. Alternatively, create a
>> /var/cache/freevo owned by the user that runs freevo.
>>
>> There are certain files that should not really be in /tmp or in
>> /etc/freevo/cache, logos, TV.xml and scheduled recordings (as
>> this contains the favourites) as examples and deleting the
>> contents of /tmp or /var/cache/freevo would cause the loss of
>> important information.
>>
>> What I do is create a /var/lib/freevo and point these variables
>> there.
>>
>> Duncan
>>
>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Splunk Inc. Still grepping
>> through log files to find problems? Stop. Now Search log events
>> and configuration files using AJAX and a browser. Download your
>> FREE copy of Splunk now >> http://get.splunk.com/
>> _______________________________________________ Freevo-users
>> mailing list [email protected]
>> https://lists.sourceforge.net/lists/listinfo/freevo-users
>>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGuNeBNi6l+Xvys44RAk82AJ9luzGDQ/zsOJJhfaDvr8GvaQAPOQCfcBFw
MXc/PzcbcQbbIUth+S616oM=
=y7jk
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users