Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: icons disappear, other bad stuff

  1. #1
    Join Date
    Sep 2012
    Beans
    34

    icons disappear, other bad stuff

    I transferred some music files from an iPod to rhythmbox and it seems to have worked fine but sometime during the couple hours of using ubuntu several things started happening. 1) 5 icons disappeared from the launcher leaving a grey button ( that still opens the program), icons also disappeared from the dash home box and there is no volume control thing on the top right bar (with battery and connection icons) 2) the settings icon in top right was unresponsive and would not allow shut down 3) when I downloaded the latest 30 updates the launcher icons all reverted to a large size after having spent hours on this forum getting help to use a script to make them smaller.
    Last edited by jonabark; October 10th, 2012 at 03:43 PM.

  2. #2
    Join Date
    Feb 2012
    Location
    Athens/Greece
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: icons disappear, other bad stuff

    Quote Originally Posted by jonabark View Post
    the launcher icons all reverted to a large size after having spent hours on this forum getting help to use a script to make them smaller.
    Hi ,

    I assume that you are taking about ubuntu-2d (unity-2d) and not compiz (ubuntu - Unity 3d).

    Probably with the update some system configuration files be replaced as others not and now you have this miss-configured system.

    If and only If you are taking about unity-2d then follow this.

    Press Ctrl+Alt+F2 keys combo to revert in Console Mode. Login there with username & password and then give (carefully) bellow commands

    Code:
    sudo service lightdm stop
    sudo apt-get install --reinstall unity-2d-common unity-2d-shell unity-2d-panel unity-2d
    sudo dpkg-reconfigure unity-2d-common unity-2d-shell unity-2d-panel unity-2d
    sudo apt-get install -f
    sudo dpkg --configure -a 
    sudo service lightdm start
    Hopefully above commands will : reinstall config files of Unity-2D , reconfigure the packages , install or remove any broken packages and solve your problem.
    Tip: The Bash Completion can take place in Console Mode. So if you want auto-fill (cuz in Console mode you have not Desktop Environment) use the [TAB] key to auto-fill the names of the packages in case you don't remember them.

    Thanks

  3. #3
    Join Date
    Sep 2012
    Beans
    34

    Re: icons disappear, other bad stuff

    Yes I do not have a video card insufficient to run 3D so have 2D and was given a script and procedure to reduce the icon size to 32. I haven't used console mode much so am still unsure on the details of the procedure you sugggst. Can I copy your commands in a single batch, then Console mode ,name /pass, and then paste the commands? Or will I need to do them one line at a time? Also I don't get the part about the auto fill with the tabs?

  4. #4
    Join Date
    Dec 2007
    Beans
    12,521

    Re: icons disappear, other bad stuff

    Quote Originally Posted by jonabark View Post
    I'm increasingly skeptical about ubuntu. ... the launcher icons all reverted to a large size after having spent hours on this forum getting help to use a script to make them smaller.
    It would help if you cut out the "commentary" and focus on the issue at hand.

    If you spent time searching the forum, you could have come across this thread, Changing icon size in Unity 2d Ubuntu 12.04, which indicate here, here, here, and elsewhere in that thread that each update of Unity 2D will cause the icons to revert to their larger size.

    Anyway, Windows 8 will soon be available.

  5. #5
    Join Date
    Sep 2012
    Beans
    34

    Re: icons disappear, other bad stuff

    OK, since your comments are in sync with the advice on getting quick response on the ubuntu forums I am, after some inner debate and attempts to clarify myself, simply going with it, removing the comments and asking for help. l have icons that have just disappeared and are grey buttons: the home folder, the calculator, the gedit, and several more in the dash home area. What can I do?
    Last edited by jonabark; October 10th, 2012 at 03:43 PM.

  6. #6
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: icons disappear, other bad stuff

    Quote Originally Posted by jonabark View Post
    Can I copy your commands in a single batch, then Console mode ,name /pass, and then paste the commands? Or will I need to do them one line at a time?
    Best do them one at a time. You wont have to put in your password every time. When you do a sudo, it sticks for a while. As long as you don't mess around too much you will probably only have to give the password for the first command

    Also I don't get the part about the auto fill with the tabs?
    Try it out. Type in the first letter or two of a command that you know to exist and then hit the tab key.

    I just tried that myself to make sure of what happens. On the basis of what I have read, I was expecting the terminal to auto-fill in the rest of the command, but what I actually got was a list of the commands that start with those letters and then a new prompt with the couple of letters still there waiting to continue. Any rate, if you get stuck half way through a command, hit tab to let the terminal guess what you are trying to type.
    Michael

  7. #7
    Join Date
    Sep 2012
    Beans
    34

    Re: icons disappear, other bad stuff

    I tried Nik Th's sudo ?? commands and they seemed to be doing things but nothing changed . The icon images are still missing.

  8. #8
    Join Date
    Feb 2012
    Location
    Athens/Greece
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: icons disappear, other bad stuff

    Hi ,
    you said , you used a script to change the configuration of Unity-2D. Can you provide this script ? (or the link you found it?)

    Also provide the last updates .
    Code:
    sudo cat /var/log/apt/term.log > history.txt
    gedit history.txt
    scroll down and take a look at the date.

    Also see
    Code:
    sudo cat /var/log/apt/history.log >> history2.txt
    gedit history2.txt
    Post the results (of the specific date) back here. Put the results between the brackets [code]Here[/code] so can be readable.

    Thanks

  9. #9
    Join Date
    Sep 2012
    Beans
    34

    Re: icons disappear, other bad stuff

    Below is the script placed in the home folder. The code to activate was
    (sudo python ./script.py 32

    But my main concern now are the icons

    Code:
    import shutil
    import sys
    import os
    
    def getparent (content, line_nr):
        for i in range (line_nr - 1, -1, -1):
            if "{" in content[i].lstrip():
                return content[i].lstrip().split(" ")[0]
    
    def change_line (content, key, value, parent):
        line_nr = 0
        for line in content:
            if line.lstrip().startswith(key + ":"):
                lparent = getparent(content, line_nr)
                if parent == lparent:
                    content[line_nr] = key + ": " + value + "\n"
                    return content
            line_nr = line_nr + 1        
    
    def load_file (filename):
        file = open (filename, "r")
        content = file.readlines()
        file.close()
        return content
        
    def write_file (filename, content):
        shutil.copyfile (filename, filename + ".bak")
        file = open (filename, "w")
        for line in content:
            file.write (line)
        file.close()
        return 
                
    shell_qml = "/usr/share/unity-2d/shell/Shell.qml"
    icontile_qml = "/usr/share/unity-2d/shell/common/IconTile.qml"
    launcherlist_qml = "/usr/share/unity-2d/shell/launcher/LauncherList.qml"
    launcheritem_qml = "/usr/share/unity-2d/shell/launcher/LauncherItem.qml"
    
    if (len(sys.argv) > 1):
        icon_size = int(sys.argv[1])
    else:
        sys.exit("Please enter your desired icon size as the first argument.")
        
    if not os.geteuid() == 0:
        sys.exit("Script must be run as root.")
     
    content = load_file (shell_qml)
    content = change_line (content, "width", str (icon_size + 16), "LauncherLoader")
    write_file (shell_qml, content)
    content = load_file (icontile_qml)
    content = change_line (content, "sourceSize.width", str (icon_size), "Image")
    content = change_line (content, "sourceSize.height", str (icon_size), "Image")
    write_file (icontile_qml, content)
    content = load_file (launcherlist_qml)
    content = change_line (content, "property int tileSize", str (icon_size + 6), "AutoScrollingListView")
    content = change_line (content, "property int selectionOutlineSize", str (icon_size + 16), "AutoScrollingListView")
    write_file (launcherlist_qml, content)
    Last edited by lisati; October 11th, 2012 at 04:07 AM. Reason: Normalise fonts; add code tags for readbility

  10. #10
    Join Date
    Dec 2007
    Beans
    12,521

    Re: icons disappear, other bad stuff

    I would not be comfortable using a script. There's no telling when it will break because of changes in the format (wording, line numbers, comments) or content.
    From the links I provided, I was quite interested in reducing the icon size, but mods to the underlying files were coming too frequently for my liking.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •