Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 2422  / 3 Years ago, sun, may 16, 2021, 3:42:29

I have recently installed lubuntu-desktop in Ubuntu 12.04.



In the lxpanel I have a network icon which shows my current network connection status. I have a wired connection [ethernet] which connects automatically at startup. In Unity or Gnome I observed that this icon changed to to arrows [one up, one down] when wired connection was established. But in lubuntu it showed "disconnected" time icon.



How can I change this network icon to behave like in Unity or Gnome? I am submitting image decribing the situation.



Thanks in advance for any help.



enter image description here



Edit



If I connect to internet via mobile broadband the network icon vanishes!
enter image description here



enter image description here


More From » 12.04

 Answers
6

Simple fix

(Without downloading anything, use 16px icon)




  1. Remove old links



    sudo rm /usr/share/icons/elementary/panel/22/nm-device-wired.svg
    sudo rm /usr/share/icons/elementary/panel/22/nm-device-wired-autoip.svg

  2. Make new links to 16px icon



    sudo ln -s /usr/share/icons/elementary/panel/16/nm-device-wired.svg /usr/share/icons/elementary/panel/22/nm-device-wired-autoip.svg
    sudo ln -s /usr/share/icons/elementary/panel/16/nm-device-wired.svg /usr/share/icons/elementary/panel/22/nm-device-wired.svg



enter image description here



Nice look fix

(Download same theme icon set)




  1. Remove old links



    sudo rm /usr/share/icons/elementary/panel/22/nm-device-wired.svg
    sudo rm /usr/share/icons/elementary/panel/22/nm-device-wired-autoip.svg

  2. Download lubuntu-icon-theme binary (Ubuntu 14.04, from https://launchpad.net/) & extract it



    wget http://launchpadlibrarian.net/156931592/lubuntu-icon-theme_0.42_all.deb
    dpkg-deb -x lubuntu-icon-theme_0.42_all.deb lubuntu-icon-theme/

  3. Copy only wired icon to elementary theme folder



    sudo cp lubuntu-icon-theme/usr/share/icons/lubuntu/panel/22/nm-device-wired.svg /usr/share/icons/elementary/panel/22/nm-device-wired.svg
    sudo ln -s /usr/share/icons/elementary/panel/22/nm-device-wired.svg /usr/share/icons/elementary/panel/22/nm-device-wired-autoip.svg



enter image description here






How did I get this?




  1. Trace file opening of nm-applet while I change status. (... ie lines I removed)



    $ pkill nm-applet
    $ strace -e trace=open nm-applet
    ...
    open("/usr/share/icons/elementary/panel/22/nm-no-connection.svg", O_RDONLY|O_LARGEFILE) = 13
    open("/usr/lib/i386-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so", O_RDONLY|O_CLOEXEC) = 14
    open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 14
    open("/usr/lib/i386-linux-gnu/librsvg-2.so.2", O_RDONLY|O_CLOEXEC) = 14
    open("/usr/lib/i386-linux-gnu/libcroco-0.6.so.3", O_RDONLY|O_CLOEXEC) = 14
    open("/usr/lib/i386-linux-gnu/libxml2.so.2", O_RDONLY|O_CLOEXEC) = 14
    ** Message: using fallback from indicator to GtkStatusIcon
    open("/usr/share/icons/elementary/panel/22/nm-no-connection.svg", O_RDONLY|O_LARGEFILE) = 13
    ** Message: applet now embedded in the notification area
    open("/usr/share/icons/elementary/panel/22/nm-no-connection.svg", O_RDONLY|O_LARGEFILE) = 13
    open("/usr/share/icons/elementary/animations/22/nm-stage01-connecting01.svg", O_RDONLY|O_LARGEFILE) = 13
    open("/usr/share/icons/elementary/animations/22/nm-stage01-connecting02.svg", O_RDONLY|O_LARGEFILE) = 13
    ...
    open("/usr/share/icons/elementary/animations/22/nm-stage03-connecting10.svg", O_RDONLY|O_LARGEFILE) = 13
    open("/usr/share/icons/elementary/animations/22/nm-stage03-connecting11.svg", O_RDONLY|O_LARGEFILE) = 13
    open("/usr/share/icons/elementary/panel/22/nm-device-wired.svg", O_RDONLY|O_LARGEFILE) = 13
    ...

  2. Notice last one, when I connected wired network. Then I check it if it is a file.



    $ ls -l /usr/share/icons/elementary/panel/22/nm-device-wired.svg
    lrwxrwxrwx 1 root root 20 Sep 25 2011 /usr/share/icons/elementary/panel/22/nm-device-wired.svg -> nm-no-connection.svg

    $ ls -l /usr/share/icons/elementary/panel/22/*wired*
    lrwxrwxrwx 1 root root 20 Sep 25 2011 /usr/share/icons/elementary/panel/22/nm-device-wired-autoip.svg -> nm-no-connection.svg
    lrwxrwxrwx 1 root root 20 Sep 25 2011 /usr/share/icons/elementary/panel/22/nm-device-wired.svg -> nm-no-connection.svg



It was a link to nm-no-connection.svg same as /usr/share/icons/elementary/panel/22/nm-device-wired-autoip.svg. That was the problem.


[#27125] Monday, May 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arsleyeuth

Total Points: 72
Total Questions: 121
Total Answers: 112

Location: North Korea
Member since Mon, Oct 31, 2022
2 Years ago
;