View Single Post
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#151
Now I found how to make new widgets from command line, I can't understand why I didn't find any documentation but I needed to run
Code:
/usr/bin/gnu/find  / -type f -exec md5sum {} \; > before.log 2> /dev/null
#manually make new widget
/usr/bin/gnu/find  / -type f -exec md5sum {} \; > after.log 2> /dev/null
/usr/bin/gnu/diff -u before.log after.log
And read the source code of hildon-desktop.

-----
But now there are steps: (these are for developers, so I won't describe them)
Root:
Code:
mkdir /var/lib/gconf/apps/osso/hildon-desktop/applets/test-widget.desktop
 echo '<?xml version="1.0"?>
 <gconf>
         <entry name="position" mtime="1331031074" type="list" ltype="int">
                 <li type="int" value="0"/>
                 <li type="int" value="306"/>
         </entry>
 </gconf>
 ' > /var/lib/gconf/apps/osso/hildon-desktop/applets/test-widget.desktop/%gconf.xml
User: (adding 'getting started'-widget)
Code:
echo "
[test-widget.desktop-0]
X-Desktop-File=/usr/share/applications/hildon-home/tutorial-home.desktop
" >>  /home/user/.config/hildon-desktop/home.plugins
-> Now you can see new widget.

Changing just created widget to the desktop 2
user:
Code:
gconftool-2 --set /apps/osso/hildon-desktop/applets/test-widget.desktop-0/view --type int 2
This modification is not visible after: killall hildon-desktop

---
I'm not yet sure does QBW has any mechanics for commandline addings or do we need some hacking there also.
TransTech made nice separated .queen_beecon-files which can be catenated to the end of existing one, so this might be almost ready (in theory).

Last edited by AapoRantalainen; 2012-03-12 at 07:10.
 

The Following 7 Users Say Thank You to AapoRantalainen For This Useful Post: