View Single Post
Posts: 96 | Thanked: 51 times | Joined on Jul 2010 @ India
#76
Originally Posted by SPARTAN563 View Post
Okay, try this:
Code:
sudo gainroot
killall AppLock
ps | grep AppLock
#Should give no entries, maybe a "grep AppLock" entry
applock -d
Should work, that is what I have been doing most of the time for debugging purposes. I will look into the Upstart script to see whether or not that is the cause of the problem but it shouldn't be...


well upon running "applock -d" as root, it always returns the same error, ie, "Could not connect to session bus"

I just restarted the daemon again. Then when I run, applock-d without root privileges, got this output.

$ applock -d
AppLock Daemon - Loading Settings
Loading Application Monitor
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QStr ing,QString,QString)
Loading Session Bus Monitor
Session Filters:
DBus Monitor Connected
DBus Monitor Running
Message Recieved on DBus Type= "signal" Sender= "org.freedesktop.DBus" Destination= ":1.993"
Signal - Interface: "org.freedesktop.DBus" && Member: "NameAcquired"
Locked application launched: "/opt/maemo/usr/bin/dorian"
Locking phone
Phone locked
Adding Filter: "Contacts_Keypress" ( "session" )
"type='method_call',interface='com.nokia.osso_addr essbook',member='search_append'"
Adding search to settings
Adding filter to monitor
Filter Added
Adding Filter: "Contacts_Shortcut" ( "session" )
"type='method_call',interface='com.nokia.osso_addr essbook',member='top_application'"
Adding search to settings
Adding filter to monitor
Filter Added
Adding Filter: "Contacts_Keypress" ( "session" )
"type='method_call',interface='com.nokia.osso_addr essbook',member='search_append'"
Adding search to settings
Adding filter to monitor
Filter Added
Adding Filter: "Contacts_Shortcut" ( "session" )
"type='method_call',interface='com.nokia.osso_addr essbook',member='top_application'"
Adding search to settings
Adding filter to monitor
Filter Added
Adding Filter: "Contacts_Keypress" ( "session" )
"type='method_call',interface='com.nokia.osso_addr essbook',member='search_append'"
Adding search to settings
Adding filter to monitor
Filter Added
Adding Filter: "Contacts_Shortcut" ( "session" )
"type='method_call',interface='com.nokia.osso_addr essbook',member='top_application'"
Adding search to settings
Adding filter to monitor
Filter Added

So it successfully loaded the daemon now. And it locks the "Dorian" app which I added via command line.
But coming back to the UI, I still cant lock or unloak apps. I cant even unlock the "Dorian" app using the UI.

EDIT: Well, clicking "unlock" in the UI on "Dorian" removed it from the database but the lock icon failed to disappear in the UI. This made me confused.
Added contacts and conversations to the database using the UI. The UI fails to show a lock icon but, since I was having terminal running the daemon, it showed me that the Ui registered keypresses and added contacts to the database. This fails to show up in the UI though. And sadly the daemon fails to lock contacts or conversations even though they are in the database.

Last edited by warhawk007; 2011-07-11 at 17:35.