[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-12-27 Thread Papp Bence
** Project changed: screenlets = indiv-screenlets -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/618868 Title: sysmonitor screenlet fails to find the computer's IP address -- ubuntu-bugs mailing

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-12-04 Thread tabbernuk
Copied an equivalent of Rivera's solution from U-A. ** Changed in: screenlets Status: Triaged = Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/618868 Title: sysmonitor

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-17 Thread Stefano Rivera
Easy solution: call ifconfig with an environment of LANG=C -- sysmonitor screenlet fails to find the computer's IP address https://bugs.launchpad.net/bugs/618868 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-15 Thread Michel Leunen
Another possibility that directly gives the right result and uses ifconfig: $ ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' That said, I don't know if the inet string stays the same in every locale, though. -- sysmonitor screenlet fails to find the computer's

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-14 Thread Julien Lavergne
Maybe there is another way to find the IP adress, which doesn't change with the locale ? Anyway, I'm re-open the bug, we need to find another fix. ** Changed in: screenlets (Ubuntu) Status: Fix Released = Triaged ** Changed in: screenlets Status: Fix Committed = Triaged **

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-14 Thread Michel Leunen
Yes, there is another way: using the command ip from the net-tools package instead of ifconfig. This package is installed by default in Ubuntu. Don't know for other distributions. Use it like this: $ ip addr show On my machine, it prints this: $ ip addr show 1: lo: LOOPBACK,UP,LOWER_UP mtu

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-14 Thread Michel Leunen
Something like this should work: def net_get_ip(): # by Whise Returns ip if it can ip = commands.getoutput(ip -o -4 addr show) x = 0 while True: ip = ip[ip.find(inet ):] ip = ip[5:] ipc = ip[:ip.find(/)]

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-14 Thread Brian Murray
** Tags added: patch -- sysmonitor screenlet fails to find the computer's IP address https://bugs.launchpad.net/bugs/618868 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-13 Thread eitch
Hello. On Maverick ifconfig returns inet addr with two 'd's and on a different machine with lucid I also see 'inet addr'. Thus this patch is a regression for me as the sysmonitor does not show the ip anymore. Kind regards -- sysmonitor screenlet fails to find the computer's IP address

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-13 Thread Michel Leunen
My analysis of the problem was quite weak, sorry On MY machine, ifconfig still returns inet adr with only one d. Actually, the problem is a problem of locale. In your english ( I presume) version, it has two d but in mine which is a french version of Maverick, inet adr has only one d. What is

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-01 Thread Julien Lavergne
Committed in revision 479 of screenlets trunk. ** Also affects: screenlets Importance: Undecided Status: New ** Changed in: screenlets Status: New = Fix Committed ** Changed in: screenlets Importance: Undecided = Low -- sysmonitor screenlet fails to find the computer's IP

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-11-01 Thread Launchpad Bug Tracker
** Branch linked: lp:screenlets -- sysmonitor screenlet fails to find the computer's IP address https://bugs.launchpad.net/bugs/618868 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-08-21 Thread Launchpad Bug Tracker
This bug was fixed in the package screenlets - 0.1.2-7ubuntu2 --- screenlets (0.1.2-7ubuntu2) maverick; urgency=low * debian/patches/21-return-ip-address.patch: - Fix screenlets.sensors.net_get_ip() to get the IP address. Thanks Michel Leunen for the patch. (LP: #618868)

Re: [Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-08-20 Thread Michel Leunen
Yep, the problem is fixed with the package in your ppa. Thanks for your fast response. Le 20/08/10 00:05, Julien Lavergne a écrit : Thank you for your bug report and the proposed fix. Could you try with the screenlets package in my PPA : https://launchpad.net/~gilir/+archive/unstable and

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-08-20 Thread Julien Lavergne
** Changed in: screenlets (Ubuntu) Status: Incomplete = In Progress ** Changed in: screenlets (Ubuntu) Assignee: (unassigned) = Julien Lavergne (gilir) -- sysmonitor screenlet fails to find the computer's IP address https://bugs.launchpad.net/bugs/618868 You received this bug

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-08-19 Thread Julien Lavergne
Thank you for your bug report and the proposed fix. Could you try with the screenlets package in my PPA : https://launchpad.net/~gilir/+archive/unstable and report back if the problem is fixed for you ? ** Changed in: screenlets (Ubuntu) Importance: Undecided = Low ** Changed in: screenlets

[Bug 618868] Re: sysmonitor screenlet fails to find the computer's IP address

2010-08-16 Thread Julien Lavergne
** Changed in: screenlets (Ubuntu) Assignee: (unassigned) = Julien Lavergne (gilir) -- sysmonitor screenlet fails to find the computer's IP address https://bugs.launchpad.net/bugs/618868 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to