View Single Post
Posts: 233 | Thanked: 491 times | Joined on Oct 2011 @ Sydney
#14
Originally Posted by Dousan View Post
@MFaroTusino i can't make it work mate. When using your instructions as on first post i only get a green app icon on my desktop with 'Percent' written under it. When pressed a xterm window appears really quick, like a short flash.
I have a .BatteryWidget folder in /home/user/
How to make it work?

Regards Dousan...
The xterm window is supposed to happen, at least for now. Need to work on that . So when pressed, the icon doesn't update?

This may be because the icon hasn't been created properly, or also due to permission issues.

Try a few things;
1. The output of;
cd /home/user/.BatteryWidget/
ls -a


Should be;
BatteryWidget.py
BatteryWidget_Template.png
Icon_Widget.png
Percent.sh
percent.txt


2.
cd /usr/share/applications/
nano BatteryWidget.desktop


should have
icon=/home/user/.BatteryWidget/Icon_Widget.png

If they are all in place, check permissions
cd /home/user/.BatteryWidget
ls -l

And make sure that Icon_Widget.png is owned by/ allowed to be written to and executed by the user and not root

Cheers
__________________
Blogs I post to
MyNokiaBlog
UnleashThePhones

Hit thanks if I have helped in some way, or you agree with me

Twitter
-------------------------------------------------------------------------------
Battery Widget
#OperationUnicorn
Harmoji - Emoji for Harmattan

-------------------------------------------------------------------------------
N9 [Black] - Sailfish OS (1.x.x.xx)
N9 [White] - PR 1.3 [Stock]
N950 - Sailfish OS
Z10 LE - 10.2.1.1055
Dev Alpha C - 10.2.1.1055

Last edited by MFaroTusino; 2012-02-26 at 06:05.