![]() |
2011-01-22
, 16:49
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#112
|
![]() |
2011-01-25
, 20:52
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#113
|
The Following User Says Thank You to Schturman For This Useful Post: | ||
![]() |
2011-01-29
, 11:36
|
Posts: 376 |
Thanked: 511 times |
Joined on Aug 2009
@ Greece
|
#114
|
Hello
I have another little problem...
I noticed when I switch from default profile to my custom, it does not load completely. it's not load my QBW widgets and I always need reload my profile. After reloading all is fine... Why this happens ? And can you fix this ?
Thanks
The Following User Says Thank You to v13 For This Useful Post: | ||
![]() |
2011-02-20
, 00:22
|
Posts: 502 |
Thanked: 366 times |
Joined on Jun 2010
@ /dev/null
|
#115
|
--- activity.old 2010-04-14 10:07:23.000000000 +1000 +++ activity 2011-01-23 11:12:23.000000000 +1000 @@ -241,8 +241,122 @@ echo -n "." gconftool-2 --load $SRCDIR/views.dump + + echo -n "." + # hack test for modified desktop + rm -f /home/user/.backgrounds/* + cp /home/user/multi_backgrounds/$1/*.png /home/user/.backgrounds/ + cp /home/user/multi_backgrounds/$1/cache.info /home/user/.backgrounds/ + gconftool -s /apps/osso/hildon-desktop/views/active -t list --list-type int [1,2,3,4,5,6,7,8,9] + for i in 1 2 3 4 5 6 7 8 9 + # do gconftool -s /apps/osso/hildon-desktop/views/$i/bg-image -t string /home/user/multi_backgrounds/$1/background-$i.png + do gconftool -s /apps/osso/hildon-desktop/views/$1/bg-image -t string /home/user/.backgrounds/background-$i.png + gconftool -s /apps/osso/hildon-desktop/views/active -t list --list-type int [1,2,3,4,5,6,7,8,9] + done + set_current $1 + + echo +} + +qload() +{ + + if [ -z "$1" ] ; then + cat << _KOKO +Pass the new activity as the first argument. +_KOKO + exit 1 + fi + + if [ "x$1" = "x-f" ] ; then + ACT="$2" + else + ACT="$1" + fi + + echo "Switching to activity: $ACT" + + restore2 "$ACT" + + empty + + restart_hildonhome + + SRCDIR="$DSTDIR0/$1" + + if is_empty "$1" ; then + echo "Empty desktop" + set_current $1 + return + fi + + echo -n "Restoring " + + # First load the views - this will be repeated at the end + + gconftool-2 --load $SRCDIR/views.dump echo -n "." + + T="$SRCDIR/home-thumbnails.tar.gz" + if [ -e $T ] ; then + [ -d "$THUMBNAILS" ] || mkdir "$THUMBNAILS" + + tar -zxf $SRCDIR/home-thumbnails.tar.gz -C $THUMBNAILS + fi + + echo -n "." + + gconftool-2 --load $SRCDIR/bookmarks.dump + + echo -n "." + + gconftool-2 --load $SRCDIR/applets.dump + + sleep 3 + echo -n "." + + #cp $SRCDIR/home.plugins "$HOME/.config/hildon-desktop/home.plugins" + if [ -e "$SRCDIR/home.plugins" ] ; then + cp $SRCDIR/home.plugins "$HOMEPLUGINS" + else + rm -f $SRCDIR/home.plugins + fi + + sleep 2 + + echo -n "." + + gconftool-2 -s --type list --list-type string \ + "$HHBASE/bookmark-shortcuts" \ + "$(cat $SRCDIR/bookmark-shortcuts)" + + echo -n "." + gconftool-2 -s --type list --list-type string \ + "$HHBASE/task-shortcuts" \ + "$(cat $SRCDIR/task-shortcuts)" + echo -n "." + gconftool-2 -s --type list --list-type string \ + "$CONTACTS" \ + "$(cat $SRCDIR/contacts)" + sleep 1 + + echo -n "." + + gconftool-2 --load $SRCDIR/applets.dump + + echo -n "." + + gconftool-2 --load $SRCDIR/views.dump + + echo -n "." + # hack test for modified desktop + rm -f /home/user/.backgrounds/* + gconftool -s /apps/osso/hildon-desktop/views/active -t list --list-type int [1,2,3,4,5,6,7,8,9] + for i in 1 2 3 4 5 6 7 8 9 + do gconftool -s /apps/osso/hildon-desktop/views/$i/bg-image -t string /home/user/multi_backgrounds/$1/background-$i.png + gconftool -s /apps/osso/hildon-desktop/views/active -t list --list-type int [1,2,3,4,5,6,7,8,9] + done set_current $1 echo @@ -500,9 +614,13 @@ # Just load do_load "$2" "$3" ;; + qload) + # Just load + qload "$2" "$3" + ;; change) - # Save the current and load the next - do_change "$2" + # Save the current and load the next + do_change "$2" ;; list) do_list
The Following User Says Thank You to tuxsavvy For This Useful Post: | ||
![]() |
2011-02-20
, 08:48
|
Posts: 270 |
Thanked: 37 times |
Joined on Sep 2010
|
#116
|
![]() |
2011-03-01
, 14:18
|
Posts: 56 |
Thanked: 21 times |
Joined on Feb 2011
@ Bangalore, India
|
#117
|
![]() |
2011-03-01
, 14:29
|
Posts: 539 |
Thanked: 165 times |
Joined on Feb 2010
@ Berlin, Germany
|
#118
|
the wiki for actman shows a "More" button. Its not there in the 0.9-1 version. Is the wiki written according to the devel version?
Another doubt, does this store the DCEW widgets also? I see that sometimes when restoring the activity, DCEW widgets are not restored.
The Following User Says Thank You to x-lette For This Useful Post: | ||
![]() |
2011-07-03
, 06:55
|
Posts: 502 |
Thanked: 366 times |
Joined on Jun 2010
@ /dev/null
|
#119
|
--- /usr/bin/activity.orig 2011-05-29 17:10:04.000000000 +1000 +++ /usr/bin/activity 2011-07-03 16:25:09.000000000 +1000 @@ -20,7 +20,7 @@ # # $Id: 0.py 2265 2010-02-21 19:16:26Z v13 $ -VERSION="1.1" +VERSION="1.1.1" D0="$HOME/.activities" @@ -312,7 +312,7 @@ cat << _KOKO Pass the activity name to save the current configuration to. The "current" activity will be also set to be that activity. -If it doesn't exist it will be created. +If it does not exist it will be created. _KOKO exit 1 fi @@ -333,7 +333,7 @@ { if [ -z "$1" ] ; then cat << _KOKO -Pass the new activity as the first argument. If it doesn't exist it will +Pass the new activity as the first argument. If it does not exist it will be created. _KOKO exit 1 @@ -356,7 +356,35 @@ do_list() { +if [ "$(whoami)" = 'root' ]; then + echo "You should not run this as root." + exit 1; +fi + ( + FOUND=0 + cd $DSTDIR0 + for i in * ; do + if [ -d "$i" ] ; then + echo "$i" + FOUND=1 + fi + done + # If there is no activity, return the default as if it existed + if [ "$FOUND" = "0" ] ; then + echo "$DEFAULTACTIVITY" + fi + ) +} + +do_clist() +{ +if [ "$(whoami)" = 'root' ]; then + echo "You should not run this as root." + exit 1; +fi ( + echo "List of stored activities:" + echo "=========================================================" FOUND=0 cd $DSTDIR0 for i in * ; do @@ -365,6 +393,8 @@ FOUND=1 fi done + echo "=========================================================" + echo "Current activity: `cat $D0/$DSTDIR0/current`" # If there is no activity, return the default as if it existed if [ "$FOUND" = "0" ] ; then echo "$DEFAULTACTIVITY" @@ -434,13 +464,13 @@ if [ -z "$1" ] || [ -z "$2" ] ; then cat << _KOKO Pass the source and destination name as first and second parameter -repsectively. +respectively. _KOKO exit 1 fi if ! check_exist "$1" ; then - echo "Activity $1 doesn't exist" + echo "Activity $1 does not exist" exit 1 fi @@ -490,7 +520,7 @@ check_exist_error "$ACT" if ! [ "x$1" = "x-f" ] ; then - read -p "Are you sure? (type yes to continue) " ans + read -p "Are you sure? (type "yes" to continue) " ans if ! [ "$ans" = "yes" ] ; then echo "Aborted" return @@ -525,6 +555,27 @@ restore2 "$CURRENT" } +do_qload() +{ + if [ -z "$1" ] ; then + cat << _KOKO +Pass the new activity as the first argument. +_KOKO + exit 1 + fi + if [ "x$1" = "x-f" ] ; then + ACT="$2" + else + ACT="$1" + fi + + check_exist_error "$1" + + echo "Loading "$1" activity without saving changes" + + restore2 "$ACT" +} + do_runstart() { if [ "x$1" = "x" ] ; then @@ -562,10 +613,12 @@ create ACTIVITY Create a new (empty) activity. current Print the current activity name. delete [-f] ACTIVITY Same as remove. - help This help. - list List available activities. + help This help screen. + clist List available activities. load [-f] SRC Load activity SRC. If -f is used then it will be allowed to re-load the current activity. + qload SRC Quickly loads the activity without saving any + changes to the previous activity. (devs only) new ACTIVITY Same as create. reload Reload current activity without storing first. remove [-f] ACTIVITY Remove activity ACTIVITY. If -f is used then there @@ -593,6 +646,9 @@ # Just load do_load "$2" "$3" ;; + qload) + do_qload "$2" "$3" + ;; change) # Save the current and load the next do_change "$2" @@ -600,6 +656,9 @@ list) do_list ;; + clist) + do_clist + ;; current) do_current ;; @@ -631,7 +690,7 @@ do_version ;; *) - echo "Bad command: $1" + do_help ;; esac
The Following User Says Thank You to tuxsavvy For This Useful Post: | ||
![]() |
2011-09-09
, 08:29
|
Posts: 669 |
Thanked: 433 times |
Joined on May 2010
|
#120
|