maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets (https://talk.maemo.org/showthread.php?t=74278)

warhawk007 2011-07-07 03:19

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
Quote:

Originally Posted by SPARTAN563 (Post 1046087)
That is because there isn't an update yet... When there is one it will appear as an update and I will post it here. Wait patiently until that time

Hey, its been a while since I visited this thread. I was having my exams and was busy with it. Nice to see you've already come up with a UI. It looks promising. Take your time. Hope you'd add portrait mode support as its being part of almost every new app released nowadays. And QML is definitely the choice for a good looking UI. So how far is your work progressing? Waiting for an update.

Cheers! :)

SPARTAN563 2011-07-07 21:58

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
1 Attachment(s)
Version 0.3.0 released
Just finished working on the UI and getting it more or less stable. There are a few small problems which still need to be fixed but for the most part it is usable.

New Features
  • A UI, obviously, all written in QML
  • Application Override files to allow specific applications to provide their own lock information. Useful for apps which require more than 1 DBus monitor.
  • Default overrides provided for Contacts, Phone and Terminal which make use of shortcuts or other functions that need monitoring.
  • Supports localisation information used in certain .desktop files (will support changing your language soon)
  • Phone is locked as soon as the UI is opened to prevent people from unlocking your apps... ;)

Known Problems
  • Removing a DBus monitored application that has been locked takes some time (up to 20 seconds) during which time the UI is unresponsive.
  • Adding a DBus monitored application does not take effect until you click on the menu and choose "Refresh Daemon"
  • Substitution files are not used for command line adds just yet (Will be fixed in v0.3.1)

Creating AppOverride files
AppOverride files use a basic INI structure, they are formatted in the following way:
Code:

Name=App Name, if you want to override it, otherwise leave this out
DesktopFile=app.desktop
[DBus]
AppName_Shortcut=<dbus-monitor watch expression>
AppName_Keypress=<dbus-monitor watch expression>
AppName_somethingelse=<dbus-monitor watch expression>
[Bin]
AppName_EXE=/path/to/exe
AppName_EXE2=/path/to/second/exe

You can specify as many DBus monitors and paths as you like, though they should all have unique names.

DBus watch expressions can be read about in the DBus Documentation under "Matches", they are structured like this in general:
Code:

type='method_call',interface='com.nokia.CallUI',member='top_application'
Release Info
The autobuilder is not functioning at the moment, I will try again tomorrow morning and attempt to upload the package for building. Lets hope the problem is fixed soon

Intermediate Release
Since the problem with Autobuilder is still giving me hassles I have hosted the .deb on my website. You can download it
HERE

warhawk007 2011-07-09 13:29

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
Quote:

Originally Posted by SPARTAN563 (Post 1046691)
Version 0.3.0 released
Just finished working on the UI and getting it more or less stable. There are a few small problems which still need to be fixed but for the most part it is usable.

New Features
  • A UI, obviously, all written in QML
  • Application Override files to allow specific applications to provide their own lock information. Useful for apps which require more than 1 DBus monitor.
  • Default overrides provided for Contacts, Phone and Terminal which make use of shortcuts or other functions that need monitoring.
  • Supports localisation information used in certain .desktop files (will support changing your language soon)
  • Phone is locked as soon as the UI is opened to prevent people from unlocking your apps... ;)

Known Problems
  • Removing a DBus monitored application that has been locked takes some time (up to 20 seconds) during which time the UI is unresponsive.
  • Adding a DBus monitored application does not take effect until you click on the menu and choose "Refresh Daemon"
  • Substitution files are not used for command line adds just yet (Will be fixed in v0.3.1)

Creating AppOverride files
AppOverride files use a basic INI structure, they are formatted in the following way:
Code:

Name=App Name, if you want to override it, otherwise leave this out
DesktopFile=app.desktop
[DBus]
AppName_Shortcut=<dbus-monitor watch expression>
AppName_Keypress=<dbus-monitor watch expression>
AppName_somethingelse=<dbus-monitor watch expression>
[Bin]
AppName_EXE=/path/to/exe
AppName_EXE2=/path/to/second/exe

You can specify as many DBus monitors and paths as you like, though they should all have unique names.

DBus watch expressions can be read about in the DBus Documentation under "Matches", they are structured like this in general:
Code:

type='method_call',interface='com.nokia.CallUI',member='top_application'
Release Info
The autobuilder is not functioning at the moment, I will try again tomorrow morning and attempt to upload the package for building. Lets hope the problem is fixed soon

Wow....eagerly waiting to test it....could you please host the file somewhere....I'm really looking forward to see that UI in action!
The wait seems so long! :(

Thanks a lot!!

Edit: Now that the Ui is completed, I suggest you update the frontpage by removing the commands and adding the UI screenshots instead considering the UI is capable of doing everything done via the command line.

cheers :)

SPARTAN563 2011-07-09 16:54

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
Okay, temporary solution since the autobuilder is still not working: Download Here

brokensmile 2011-07-09 20:17

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
@Spartan
gr8!!! but wen i click the icon its opening and jus closing by itself.... so wen it will b ready

SPARTAN563 2011-07-09 20:38

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
Hmm, I think that may be an issue caused by having a previous version installed. You can try fixing it by doing the following:
Code:

cd /usr/share/applications/hildon
sudo gainroot
nano AppLock.desktop

Change "Exec=*" to be:
Code:

Exec=/opt/applock/AppLock -ui

cutehunk04 2011-07-09 21:53

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
here is the screenshot...there is no save option,...after changing the code what should i do ....

http://i55.tinypic.com/iqddl3.png

SPARTAN563 2011-07-09 22:39

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
Press "Ctrl+O", "Enter", "Ctrl+X"

brokensmile 2011-07-10 04:06

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
wen i type the first code in xterminal ..... i got dis

[rootNokia-N900:~]$ cd /usr/share/applications/hildon
[rootNokia-N900:/usr/share/applications/hildon]$ sudo gainroot
root is not in the sudoers file. This incident will be reported.
[rootNokia-N900:/usr/share/applications/hildon]$ nano AppLock.desktopBusyBox v1.18.5 (Debian 1.18.5power2) multi-call binary.

Usage: sendmail [OPTIONS] [RECIPIENT_EMAIL]...

Read email from stdin and send it

Standard options:
-t Read additional recipients from message body
-f sender Sender (required)
-o options Various options. -oi implied, others are ignored
-i -oi synonym. implied and ignored

Busybox specific options:
-w seconds Network timeout
-H 'PROG ARGS' Run connection helper
Examples:
-H 'exec openssl s_client -quiet -tls1 -starttls smtp
-connect smtp.gmail.com:25' <email.txt
[4<username_and_passwd.txt | -au<username> -ap<password>]
-H 'exec openssl s_client -quiet -tls1
-connect smtp.gmail.com:465' <email.txt
[4<username_and_passwd.txt | -au<username> -ap<password>]
-S server[:port] Server
-au<username> Username for AUTH LOGIN
-ap<password> Password for AUTH LOGIN
-am<method> Authentication method. Ignored. LOGIN is implied

Other options are silently ignored; -oi -t is implied
Use makemime applet to create message with attachments

and i was waiting and after sometime i press enter and one more line i got

bash: /usr/bin/nano: No such file or directory

brokensmile 2011-07-10 04:30

Re: [ANNOUNCE] AppLock - An application locking daemon for Maemo handsets
 
and wen i edit the applock.desktop

the content i hav seen its something like dis

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Name=AppLock
Exec=/opt/applock/AppLock
Icon=AppLock
X-Window-Icon=AppLock
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable


wen i change exec= ....
Exec=/opt/applock/AppLock -ui
and wen i sav it says file is read only


All times are GMT. The time now is 19:00.

vBulletin® Version 3.8.8