bovender / indicator-ip

Ubuntu indicator that displays local and external IP addresses.
34 stars 5 forks source link

Using Linux Mint 18.x (Cinnamon or KDE) there is no ip address displayed nor is there an icon in the system tray? #10

Open phd21 opened 6 years ago

phd21 commented 6 years ago

Dear bonvender (indicator-ip),

First, Thank you for creating this very handy utility application.

I am using Linux Mint 18.x (Cinnamon or KDE based upon Ubuntu 16.04) and after installing this there is no IP address displayed nor is there an icon in the system tray panel? But, I can right click a space where the icon should be and see my public and local IP addresses?

Am I missing some "unity" dependency, or some other dependency, or could you please make whatever modifications to this so that I can see the actual IP address in the panel or an option when mousing over it, I can also see the IP addresses? It would also be very nice to have this as a desktop application option to not take up as much space in the system tray panel...

Best regards to you and yours, Phil phd21 cinnamon18-4_indicator_ip_for_ip_address6sm

bovender commented 6 years ago

Hi Phil,

there's an IP address being displayed alright on your screenshot?

You're right though, there's no icon. I really don't know much about programming indicator widgets, so I'm glad I was able to put this together somehow -- and I use it myself every day.

What do you mean with "have this as a desktop application"? If you want to have it displayed on your desktop background, something like Conky might help you out.

As for possible errors, it might be helpful to have a look at /var/log/syslog.

Did this help

Daniel (bovender)

phd21 commented 6 years ago

Hi Daniel (bovender),

Thank you for the quick reply...

The IP address you see in the screenshot is from a Linux Mint Cinnamon applet called "Local IPs with settings", but it does not show the "Public" IP address that I know of.

I use Linux Mint KDE which I love for my main operating systems and have for years, but I help out a lot on the Linux Mint forums where Cinnamon and Mate are commonly used. In my Linux Mint KDE 18.1 (also based on Ubuntu 16.04), there is no easy way for me to see my public IP address. Your application now makes that better, but on either edition Cinnamon or KDE, your indicator is not showing an icon or displaying the IP address. When you mouse over the blank space where your app's icon would be, it shows the name "indicator-ip"; I would think it would be fairly easy for you to modify your code to add the public and local IP addresses into that mouse over pop-up, even if you change the appname label to include that information? And, can't you specify an icon to use in this program, and or allow users to select one? What programming environment did you use for this, python? If so, which version, and which IDE and or editor did you use?

This is the Linux Mint post that I have been helping with, but I need and want this IP indicator as well. https://forums.linuxmint.com/viewtopic.php?f=53&t=251802&p=1354640#p1354640

As for this being a "desktop" application, somehow you told this application to install as a system tray panel indicator, can you tell it to install to optionally to the desktop?

Best regards to you and yours, Phil phd21

bovender commented 6 years ago

Hi Phil,

to find out why the IP is not shown, a look at the log might help: Open a terminal, then issue indicator-ip -vv ('very verbose') and look at the output. This is what it looks like on my system:

$ indicator-ip -vv
INFO:IndicatorIp.indicator:Refreshing
INFO:IndicatorIp.interfaces:Building interface list
INFO:IndicatorIp.indicator:Building menu
INFO:IndicatorIp.indicator:Selecting interface: public
INFO:IndicatorIp.indicator:Updating indicator label
INFO:IndicatorIp.indicator:Updating indicator label
INFO:IndicatorIp.indicator:Connecting to DBus

Can you see any error messages on your system?

It should be possible to add an icon, but I am not sure how to tweak the tooltip that appears on hover (there is non on Ubuntu Linux).

Again, if you want the IP address to appear on the desktop, you should look at Conky.

Best

Daniel

phd21 commented 6 years ago

Hi Daniel (bovender),

I ran the command "indicator-ip -vv", and got the same results in my Linux Mint KDE 18.x system as you show.

As for adding a tooltip, mouse over, hover , pop-up, I found a bunch of various code for that.

Look for heading "Movable Python, Tkinter & Tooltips" in link below

One of the new features that I thinks greatly improves usability was also one of the easiest to implement, tooltips. There is a very easy to use module included in the Python standard library, as part of IDLE, called CallTipWindow.py. With a bit of modification it made adding tooltips to buttons (and other widgets) a snap. http://www.voidspace.org.uk/python/weblog/arch_d7_2006_07_01.shtml#e387

A tooltip class for Tkinter https://www.daniweb.com/programming/software-development/code/484591/a-tooltip-class-for-tkinter

Display message when going over something with mouse cursor in Python https://stackoverflow.com/questions/20399243/display-message-when-going-over-something-with-mouse-cursor-in-python

Making a “hovering box” in Tkinter https://jakirkpatrick.wordpress.com/2012/02/01/making-a-hovering-box-in-tkinter/

Creating a mouse over text box in tkinter https://stackoverflow.com/questions/19524072/creating-a-mouse-over-text-box-in-tkinter

Hope this helps ...