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 2.4k 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

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better ๐Ÿ’—

                        Register Login
                        • First post
                          Last post