View Single Post
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#22
Here is a fix. All these applications use a common library called nokia-utilities. I have patched the library to write log files to /home/user/.log/ instead of /var/log/ (and it will create the .log directory as necessary, no manual intervention necessary).

I will email the author with my suggested patch later. An updated version of the library is attached to this posting, download and install and all those apps should start working, at least as far as the logfiles are concerned (and if you did give global write access to /var/log/, now is the time to reverse that.. not needed and not wanted).

FYI, the patch is as follows:
Code:
diff -u nk.old/usr/lib/python2.5/site-packages/nokia_utilities.py nk/usr/lib/python2.5/site-packages/nokia_utilities.py
--- nk.old/usr/lib/python2.5/site-packages/nokia_utilities.py   2007-11-16 18:54:42.000000000 +0100
+++ nk/usr/lib/python2.5/site-packages/nokia_utilities.py       2007-11-17 15:26:33.000000000 +0100
@@ -196,7 +196,10 @@
     global program_name, logfile, root, osso_context, context_name, app, vb
 
     program_name=text_name
-    logfile='/var/log/%s.log' % (sys_name)
+    f='/home/user/.log'
+    if not os.path.exists(f):
+        os.mkdir(f)
+    logfile=f+'/%s.log' % (sys_name)
     # "context" must start with "org.maemo."
     context_name='org.maemo.'+sys_name
     osso_context=None
Attached Files
File Type: deb nokia-utilities_2007.11.16-9b_all.deb (5.4 KB, 151 views)
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 

The Following User Says Thank You to TA-t3 For This Useful Post: