maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Actman activity manager (https://talk.maemo.org/showthread.php?t=47373)

iscio 2011-01-15 11:39

Re: [Announce] Actman activity manager
 
what is the meaning of
"Added a backup configuration file to backup activities"
thank you

another question:
"Store Current" is the same to use "New"?

v13 2011-01-16 21:49

Re: [Announce] Actman activity manager
 
It seems that I need to add a 'help' option.

Quote:

Originally Posted by iscio (Post 920785)
what is the meaning of
"Added a backup configuration file to backup activities"
thank you

another question:
"Store Current" is the same to use "New"?

The first is a configuration file that makes n900 take a backup of actman's configuration files when performing a backup. It was requested in this thread some posts ago.

As for the second: When you load an activity and you perform changes, those changes are saved by actman only when you switch activities. If in the mean time hildon-home crashes and you loose some widgets, actman will not be able to restore them. It's one those features that you don't need to know about unless you need them.

iscio 2011-01-17 07:17

Re: [Announce] Actman activity manager
 
ok thank you very much

v13 2011-01-17 09:11

Re: [Announce] Actman activity manager
 
FYI: actman just got a wiki page :)

zimon 2011-01-17 16:16

Re: [Announce] Actman activity manager
 
store did something else also than just store
Code:

~ $ activity list
20101205
20101217
Default
~ $ activity current
Default
~ $ activity store 20110117
Creating: 20110117
Saving to: 20110117
Saving ........
~ $ activity current
20110117

~ $ activity list
20101205
20101217
20110117
Default

I would had wanted just to store backup and continue using Default.

v13 2011-01-17 16:27

Re: [Announce] Actman activity manager
 
Quote:

Originally Posted by zimon (Post 922378)
store did something else also than just store
Code:

~ $ activity current
Default
~ $ activity store 20110117
Creating: 20110117
Saving to: 20110117
Saving ........
~ $ activity current
20110117

I would had wanted just to store backup and continue using Default.

Right! First of all, don't panic! You just found an undocumented feature where 'store' also changes the current activity. The intention was to use 'activity store' to store the current desktop as such and then operate on that. Either I'll add an option or add another command that just saves the current settings without changing the activity.

If you want that behavior right now then edit /usr/bin/activity and go to do_store(). There you'll see the lines:
Code:

set_current "$1"
get_current
save2

Change those to:
Code:

get_current
BACK="$CURRENT"
set_current "$1"
get_current
save2
set_current "$BACK"

and you'll be ready

x-lette 2011-01-17 17:16

Re: [Announce] Actman activity manager
 
One suggestion: could you replace the icon left of the message after having successfully stored current activity? Currently it looks like an error message even the task was completed successful.
I like that new feature very much as I don't have to open terminal again to do that job.

Schturman 2011-01-21 22:17

Re: [Announce] Actman activity manager
 
Hello
I have the command that working good with QBW, and I want create script for the Actman, but I don't know how to do this (I'm not programmer). Can someone help me please..
I have this command:
Code:

dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"Internet 3G" uint32:0 |dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}') org.bluez.Adapter.SetProperty string:Powered variant:boolean:true
What I should write in the script ?
Thanks

x-lette 2011-01-22 14:27

Re: [Announce] Actman activity manager
 
Quote:

Originally Posted by Schturman (Post 925715)
I have this command:
Code:

dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"Internet 3G" uint32:0 |dbus-send --system --type=method_call --dest=org.bluez $(dbus-send --system --print-reply --dest=org.bluez / org.bluez.Manager.ListAdapters | awk -F'"' '/at/ {print $2}') org.bluez.Adapter.SetProperty string:Powered variant:boolean:true
What I should write in the script ?

Just create a textfile with some name you like, put the line (1) on top of the file and add your dbus call on next line(s). Then make that file executable (2) and specify the path to it in actman.
(1)
Code:

#!/bin/sh
(2) (in terminal)
Code:

chmod +x <filename>

Schturman 2011-01-22 15:54

Re: [Announce] Actman activity manager
 
F*ck... Thanks man !
I did this but without permission, I forgot about permission :) Now it's work, but...
In this post you wrote we need add the words "start" and "stop".. Where I should write this words in the script ?


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8