UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Refresh icon view in App Drawer in real time

    Scheduled Pinned Locked Moved Support
    12 Posts 4 Posters 1.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • C Offline
        chrisse
        last edited by

        Hi,
        Everything works fine, thanks!

        1 Reply Last reply Reply Quote 0
        • hankschwieH Offline
          hankschwie
          last edited by hankschwie

          Hmmmm.... Don't know why, but the icons vanished from /home/phablet/.local/share/applications/ after a restart of Unity8. I put them back in, but renamed them to match the desktop files, so they now are called anboxtoggleGREEN.png and anboxtoggleRED.png; changed that in the desktop files, too. Hope this will work permanently,

          1 Reply Last reply Reply Quote 0
          • C Offline
            chrisse
            last edited by

            You're right, I just restarted Unity8 and they vanished.
            Tell me if your solution works before I transfer them again.
            Otherwise, I will transfer them to Downloads and copy them to ../applications everytime I restart Unity8 (not often)...

            hankschwieH 1 Reply Last reply Reply Quote 0
            • hankschwieH Offline
              hankschwie @chrisse
              last edited by

              @chrisse

              Well, the icons survived a couple of unity8 restarts, and two device restarts, so it looks like the name was important... For all anbox apps the names for the desktop files and their icons are identical except for the ending, so I thought that could do the trick.

              1 Reply Last reply Reply Quote 1
              • C Offline
                chrisse
                last edited by

                Two Unity8 restarts and it still works! Thanks!

                LakotaubpL 1 Reply Last reply Reply Quote 0
                • LakotaubpL Offline
                  Lakotaubp @chrisse
                  last edited by

                  @chrisse Two Lomiri restarts 😉

                  1 Reply Last reply Reply Quote 2
                  • TobsEndT Offline
                    TobsEnd
                    last edited by TobsEnd

                    Hi,
                    I tried to use the script, but it couldn't get it to work. I can see the red icon in the drawer but nothing happens when I push the button. Do I have to activate something so that the script can run properly?
                    Do I need to make script executable with root rights?

                    Pixel 2XL rc

                    hankschwieH 1 Reply Last reply Reply Quote 0
                    • hankschwieH Offline
                      hankschwie @TobsEnd
                      last edited by

                      @TobsEnd
                      Yes, you need to make the script executable. It will run without r/w rights later on.

                      TobsEndT 1 Reply Last reply Reply Quote 0
                      • TobsEndT Offline
                        TobsEnd @hankschwie
                        last edited by TobsEnd

                        @hankschwie I do i have to use chmod +x or ```
                        sudo chmod +x

                        Pixel 2XL rc

                        hankschwieH 1 Reply Last reply Reply Quote 0
                        • hankschwieH Offline
                          hankschwie @TobsEnd
                          last edited by hankschwie

                          @TobsEnd
                          Sorry, I didn't use chmod, but used a nautilus function to set it executable

                          ls -la in the directory tells me:

                          rwxr-xr-x 1 heinrich heinrich 631 Mär 15 19:30 anboxtoggle.sh
                          for the skript, so I guess you would have to use the sudo version.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post