![]() |
2012-04-07
, 03:07
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#52
|
HOLA. congratulations on your work. I find it very ineresante.
You could create a script to:
VOLUME + = torch - on
VOLUME - = torch - off
I would greatly appreciate it
#just to torch on/off for guillermorojaz torchAutoShutOffTimeMs=60000 longClickDelayMs=400 doubleClickDelayMs=400 trebleClickDelayMs=600 action=torchOn,volumeUp,singleClick,screenLocked action=torchOff,volumeDown,singleClick,screenLocked
The Following User Says Thank You to wolke For This Useful Post: | ||
![]() |
2012-04-07
, 04:15
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#53
|
The Following User Says Thank You to F2thaK For This Useful Post: | ||
![]() |
2012-04-07
, 05:08
|
|
Posts: 283 |
Thanked: 102 times |
Joined on Jan 2012
@ VENEZUELA
|
#54
|
![]() |
2012-04-07
, 05:23
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#55
|
The Following User Says Thank You to wolke For This Useful Post: | ||
![]() |
2012-04-07
, 13:41
|
Posts: 7 |
Thanked: 4 times |
Joined on Apr 2012
@ Sweden
|
#56
|
description "Startup script for n9-button-monitor" # Author e-mail address, mandatory author "elliot.wolk@gmail.com" start on filesystem or runlevel [2345] stop on runlevel [!2345] #none: stdout to /dev/null #output: direct stdout to console console output #if application exits, restart max 3 times within 300 secs respawn #respawn limit 3 300 exec /usr/bin/aegis-exec -s -u user sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor' #exec sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor' #exec /usr/bin/aegis-exec -s -u user sh -c 'DISPLAY=:0 n9-button-monitor'
![]() |
2012-04-07
, 15:57
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#57
|
I've tried for hours now. It is impossible to get it to autostart. Seriously what should I do?
How can I debug it?Code:description "Startup script for n9-button-monitor" # Author e-mail address, mandatory author "elliot.wolk@gmail.com" start on filesystem or runlevel [2345] stop on runlevel [!2345] #none: stdout to /dev/null #output: direct stdout to console console output #if application exits, restart max 3 times within 300 secs respawn #respawn limit 3 300 exec /usr/bin/aegis-exec -s -u user sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor' #exec sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor' #exec /usr/bin/aegis-exec -s -u user sh -c 'DISPLAY=:0 n9-button-monitor'
Now I can't start it at all from terminal. Can't get necessary permissions from develsh. How is this possible? Is aegis having fun giving permissions one day and blocking them the next?
description "Startup script for n9-button-monitor" author "elliot.wolk@gmail.com" start on DESKTOP_VISIBLE stop on core_shutdown console none respawn exec /bin/develsh -c 'source /etc/profile; /usr/bin/n9-button-monitor'
The Following User Says Thank You to wolke For This Useful Post: | ||
![]() |
2012-04-07
, 17:54
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#58
|
![]() |
2012-04-13
, 00:10
|
Posts: 26 |
Thanked: 97 times |
Joined on Dec 2011
|
#59
|
Originally Posted by GuSecsucks. i also had tons of trouble getting my autostart script to work, and that was on openmode.
I've tried for hours now. It is impossible to get it to autostart. Seriously what should I do?
How can I debug it?Code:exec /usr/bin/aegis-exec -s -u user sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor' #exec sh -c 'source /etc/profile; PATH=$PATH:/usr/local/bin; develsh -c n9-button-monitor' #exec /usr/bin/aegis-exec -s -u user sh -c 'DISPLAY=:0 n9-button-monitor'
Now I can't start it at all from terminal. Can't get necessary permissions from develsh. How is this possible? Is aegis having fun giving permissions one day and blocking them the next?
my current hypothesis for your problem is that its running at startup with incorrect permissions, and then somehow mucking you up.
<aegis> <request> <credential name="UID::user" /> <credential name="GID::users" /> <credential name="GRP::users" /> <for path="/opt/n9-button-monitor/start.sh" /> <for path="/opt/n9-button-monitor/stop.sh" /> <for path="/opt/n9-button-monitor/n9-button-monitor.py" /> </request> </aegis>
exec /usr/bin/aegis-exec -s -l -u user /opt/n9-button-monitor/start.sh
The Following User Says Thank You to Jare For This Useful Post: | ||
![]() |
2012-04-13
, 18:27
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#60
|
"You are holding it wrong."
Your approach won't work even with Inception. You have to do a proper debian package, which contains the needed _aegis and digsigsums files. Otherwise "root" will not be able to execute the scripts or python application as "user". Aegis-exec won't give you permissions, if those aren't requested in the first place (during installation).
You could create a script to:
VOLUME + = torch - on
VOLUME - = torch - off
I would greatly appreciate it