indiv-screenlets-dev team mailing list archive
-
indiv-screenlets-dev team
-
Mailing list archive
-
Message #00408
[Bug 1132812] Re: Sysmonitor screenlet shows wrong IP address. (vmnet1 instead of wlan0)
Because screenlets are written in python end user gets copy of source code and not precompiled binary, which means that you
can change installed files directly (not recommended) or get a copy of source code from tarball and change that.
For example if you want to change sensors.py:
1. download source
2. make changes in SOURCE_PATH/src/lib/sensors.py
3. go to SOURCE_PATH and execute "python setup.py build"
4. run "export PYTHONPATH=SOURCE_PATH/build/lib.linux-x86*/screenlets/" where lib.linux-x86* is folder generated by command above. (it will be for ex. lib.linux-x86_64-2.6, it depends on arch)
5. run desired screenlet and test your changes
It's important to run step 4 and 5 in same terminal because otherwise
python will import your installed modules and not those that you have
just changed.
When you make a patch which you want to be permanent, execute "sudo
setup.py install" in SOURCE_PATH folder. Also, when you do that, post
patch upstream ;)
Regards,
Rastko Karadzic.
--
You received this bug notification because you are a member of
Individual Screenlets Developers, which is subscribed to Individual
Screenlets.
https://bugs.launchpad.net/bugs/1132812
Title:
Sysmonitor screenlet shows wrong IP address. (vmnet1 instead of wlan0)
Status in Screenlets — individual widgets development:
Fix Committed
Bug description:
Sysmonitor screenlet shows IP address (and then the related Download
and Upload speeds) of VMWare (vmnet1) instead of the wlan0 that it is
currently connected to (even when VMWare guest is properly shut down.)
I tried to locate the function sensors.net_get_ip() in a few files to
know what is being passed and fix it or find a workaround but did not
want to brick my system since I am a tester and not a development guy,
specially since I came to know that python needs to maintain strict
indentation to be able to work properly. I only have a couple of days
of experience on Ubuntu and am in a learning phase, so kindly be light
if you find this bug a little noobish.
Sysmonitor 0.1.7++ by Whise
Screenlets 0.1.6
To manage notifications about this bug go to:
https://bugs.launchpad.net/indiv-screenlets/+bug/1132812/+subscriptions
References