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

Customizing Icons

Scheduled Pinned Locked Moved Google Pixel 3a/3a XL
61 Posts 12 Posters 12.6k Views 4 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.
    • I Offline
      ikoz @Salah
      last edited by 19 Oct 2024, 15:13

      @Salah
      Sorry for the confusion, just tested and it works only if the path doesn't have a / at the end.
      e.g. /home/phablet/Downloads/icons
      The path can be anywhere you want, as the script is run with sudo.

      Are you putting the path like this => /home/phablet/Downloads/icons/ or after => /icons/(Folder Name).

      Do not enter any newline, it appears on a new line due to line wrapping

      Is there any way to change the dash (Ubuntu Logo) to other icons??

      Nothing I'm aware of. It could be somewhere on /usr/share/icons/suru/.

      May the source be with you

      S 1 Reply Last reply 19 Oct 2024, 21:35 Reply Quote 0
      • S Offline
        Salah @ikoz
        last edited by 19 Oct 2024, 21:35

        @ikoz I have tried => /home/phablet/Downloads/icons and I have tried /home/phablet/Downloads/icons/UC.

        Both did not work. I do not know why it is not working.

        I have copied suru folder. Changed icon theme name and changed svg files with exact file name.

        Nothing is happening.

        " Our Business, Is Life Itself,, "

        • Iphone X => Daily Use
        • Nokia N900 => Secondary Device for Experiments and Mods. LOVE THIS DEVICE...
        • Google Pixel 3a XL => Using This Device as Secondary Device -- UT 20.04 Version
        I 1 Reply Last reply 20 Oct 2024, 06:50 Reply Quote 0
        • I Offline
          ikoz @Salah
          last edited by ikoz 20 Oct 2024, 06:50

          @Salah Are your icons in icons/ or UC/? The path can be anywhere, not just in Downloads and the icons must be like path/icon.svg.
          Did you try replacing the backup directory with your icons and click restore?
          Are you using the latest version?
          If you know some bash scripting you can see the script at: /opt/click.ubuntu.com/icon-changer.ikozyris/current/assets/customicon.sh.
          It must be ran from /opt/click.ubuntu.com/icon-changer.ikozyris/current/.

          May the source be with you

          S I 2 Replies Last reply 20 Oct 2024, 11:48 Reply Quote 1
          • S Offline
            Salah @ikoz
            last edited by 20 Oct 2024, 11:48

            @ikoz I am using /home/phablet/Downloads/icons/UC

            Thats it and it is not working.

            What a I did actually is taking suru's folder and altered svg icons and png form sources and so.

            Renamed folder to UC including files inside and then sent a copy to my device in icons folder.

            So it is really frustrating and suppose to be easy.

            Even though I have tried Humanity icons which is already inside the device. Took the folder and put the path. Nothing Happen.

            Therefore, could you please give me a screen shot for a successful icons from your side. I want to see how did you put the path.

            Thanks for being patience.

            " Our Business, Is Life Itself,, "

            • Iphone X => Daily Use
            • Nokia N900 => Secondary Device for Experiments and Mods. LOVE THIS DEVICE...
            • Google Pixel 3a XL => Using This Device as Secondary Device -- UT 20.04 Version
            I 1 Reply Last reply 20 Oct 2024, 15:17 Reply Quote 0
            • I Offline
              Ian @ikoz
              last edited by 20 Oct 2024, 12:03

              @ikoz It might be worth confirming owners/groups and rwx of the icon folders and files.

              S 1 Reply Last reply 20 Oct 2024, 13:26 Reply Quote 1
              • S Offline
                Salah @Ian
                last edited by 20 Oct 2024, 13:26

                @Ian Hello,

                I want to tell you that I have tried several times with different icons folder but nothing happens.

                I do not know what is wrong with this app and I think am going to give up trying for nothing.

                Hope on next update to facilitate changing icons.

                " Our Business, Is Life Itself,, "

                • Iphone X => Daily Use
                • Nokia N900 => Secondary Device for Experiments and Mods. LOVE THIS DEVICE...
                • Google Pixel 3a XL => Using This Device as Secondary Device -- UT 20.04 Version
                I 1 Reply Last reply 20 Oct 2024, 13:30 Reply Quote 0
                • I Offline
                  Ian @Salah
                  last edited by Ian 20 Oct 2024, 13:30

                  @Salah please wait for ikoz to confirm ownership and permissions of the files and folders before giving up.

                  1 Reply Last reply Reply Quote 1
                  • I Offline
                    ikoz @Salah
                    last edited by ikoz 20 Oct 2024, 15:17

                    @Salah Please try the latest version and send the logs.
                    Alternatively, run the following script from /opt/click.ubuntu.com/icon-changer.ikozyris/current/ with parameter your icon path.

                    #!/bin/bash
                    
                    echo "$1"
                    pwd
                    sudo mount -o rw,remount /
                    
                    echo "remounted as RW"
                    
                    list_icons=$(
                    cd /usr/share/applications/ || exit
                    grep -P "^Icon=.+(png|svg)$" *.desktop | sed 's/.desktop:Icon=/":"/;s/^/"/;s/$/",/'
                    
                    cd /home/phablet/.local/share/applications || exit
                    grep -P "^Icon=.+(png|svg)$" *.desktop | sed 's/.desktop:Icon=/":"/;s/^/"/;s/$/",/'
                    )
                    
                    echo "Got icons"
                    
                    mapfile -t list_icons_name < <(grep -Po '(?<=")[^"]+(?=":)' <<< "$list_icons")
                    mapfile -t list_icons_path < <(grep -Po '(?<=:")[^"]+(?=")' <<< "$list_icons")
                    
                    echo "got names/paths"
                    
                    cd assets || exit
                    
                    # Create a backup directory of the original icons
                    if [ ! -d "backup" ]; then
                        mkdir backup
                    fi
                    
                    # Loop for each installed app
                    for index in ${!list_icons_name[*]}; do
                        echo -e "\n Current file: $index"
                        list_icons_ext=${list_icons_path[$index]##*.}
                        list_icons_rename=${list_icons_name[$index]%%_*}
                    
                        # Copy the original files in the backup directory if they don't exist
                        if [ ! -f "backup/$list_icons_rename.$list_icons_ext" ]; then
                            sudo cp "${list_icons_path[$index]}" "backup/$list_icons_rename.$list_icons_ext"
                        fi
                    
                        echo "Checking $list_icons_rename.$list_icons_ext"
                        # Copy the icons if they exist
                        if [ -f "$1/$list_icons_rename.$list_icons_ext" ]; then
                            echo "Copying"
                            sudo cp -v "$1/$list_icons_rename.$list_icons_ext" "${list_icons_path[$index]}"
                        fi
                        cd ..
                    done
                    
                    sudo mount -o ro,remount /
                    
                    

                    @Ian said in Customizing Icons:

                    It might be worth confirming owners/groups and rwx of the icon folders and files.

                    Shouldn't be a problem as the script runs with sudo.


                    Salah said in Customizing Icons:

                    Hope on next update to facilitate changing icons.

                    My current problem is that lomiri-app-launch doesn't read the .desktop files, but uses hard-coded desktop files from the click package,

                    May the source be with you

                    S 1 Reply Last reply 21 Oct 2024, 08:15 Reply Quote 1
                    • S Offline
                      Salah @ikoz
                      last edited by 21 Oct 2024, 08:15

                      @ikoz Really appreciate your time and effort responding to my question.

                      To be honest. I am trying to follow you, but am not that expert and do not know how to run a script or how to use your script. Just do not steps.

                      Just for the record, Apple has recently allowed in her IOS 18 to change icons following Android.

                      Therefore, that should be pretty easy in Ubuntu Touch and hope this will be considered in the near future, same like Ubuntu Desktop, or if you remember Nokia when changing icons was pretty easy back old days. Even my monster (Nokia N900) has a variety of options and easy hacking and altering, even though it is based on Maemo OS.

                      FYI, till now am trying to understand how to use commands in UT Terminal, a bit difference using it in my laptop :face_with_tears_of_joy:.

                      Thanks again and hope to see improvement later on.

                      By the way, I have installed latest Custom Phablet Tools version and nothing happened.

                      Regards,👍 👍 👍 👍

                      " Our Business, Is Life Itself,, "

                      • Iphone X => Daily Use
                      • Nokia N900 => Secondary Device for Experiments and Mods. LOVE THIS DEVICE...
                      • Google Pixel 3a XL => Using This Device as Secondary Device -- UT 20.04 Version
                      * M 2 Replies Last reply 22 Oct 2024, 09:00 Reply Quote 0
                      • * Offline
                        *Enrico13011978* Banned @Salah
                        last edited by 22 Oct 2024, 09:00

                        @Salah 💯 👍🤣

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          Moem @Salah
                          last edited by 22 Oct 2024, 10:17

                          @Salah said in Customizing Icons:

                          Apple has recently allowed in her IOS 18 to change icons following Android.

                          Therefore, that should be pretty easy in Ubuntu Touch

                          Sorry, how does one follow from the other?

                          Is currently using an Op5t
                          Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                          S 1 Reply Last reply 23 Oct 2024, 10:44 Reply Quote 1
                          • S Offline
                            Salah @Moem
                            last edited by 23 Oct 2024, 10:44

                            @Moem I will tell you, Android on its store has tons of icons to be installed and replacing what is in the devices no matter what.

                            IOS 18 allowed eventually to replace icons, but not like Android of course in terms of implementation. Even though they have icons in Apple Store.

                            UT OS does not allow to change or replace files in File System due to Permission Denied access to them.

                            " Our Business, Is Life Itself,, "

                            • Iphone X => Daily Use
                            • Nokia N900 => Secondary Device for Experiments and Mods. LOVE THIS DEVICE...
                            • Google Pixel 3a XL => Using This Device as Secondary Device -- UT 20.04 Version
                            M I 2 Replies Last reply 23 Oct 2024, 11:14 Reply Quote 0
                            • M Offline
                              Moem @Salah
                              last edited by 23 Oct 2024, 11:14

                              @Salah That's right, it's an immutable system which is an inherent part of its philosophy. It's not a bug, it's intentional for it to be that way. It will not work for everyone, that's for sure.

                              Is currently using an Op5t
                              Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                              1 Reply Last reply Reply Quote 1
                              • I Offline
                                ikoz @Salah
                                last edited by 23 Oct 2024, 11:21

                                @Salah said in Customizing Icons:

                                UT OS does not allow to change or replace files in File System due to Permission Denied access to them

                                Actually, the correct way to change the icons is by changing the path specified in the .desktop file. The default path is on /usr/share... e.g.

                                Icon=path
                                

                                you can change that to somewhere on /home which is read-write. However Lomiri doesn't check the desktop file for click packages. (As one can see on lomiri-app-launch code).

                                May the source be with you

                                * 1 Reply Last reply 23 Oct 2024, 11:25 Reply Quote 1
                                • * Offline
                                  *Enrico13011978* Banned @ikoz
                                  last edited by *Enrico13011978* 23 Oct 2024, 11:25

                                  There is/was definitely a great tool for Ubuntu Touch to change icons and wallpapers. I think it's called custom-phablet-tools used it a lot on Xenial!

                                  I 1 Reply Last reply 23 Oct 2024, 11:51 Reply Quote 1
                                  • I Offline
                                    ikoz @*Enrico13011978*
                                    last edited by arubislander 23 Oct 2024, 11:51

                                    @Enrico13011978 But I have changed the backend to not require remounting root as read-write or sudo. I now call it Icon Changer, as I removed the wallpapers.

                                    May the source be with you

                                    S 1 Reply Last reply 23 Oct 2024, 12:09 Reply Quote 2
                                    • S Offline
                                      Salah @ikoz
                                      last edited by 23 Oct 2024, 12:09

                                      @ikoz Thanks for your advice. I will see what I can do.

                                      Thumbs Up

                                      " Our Business, Is Life Itself,, "

                                      • Iphone X => Daily Use
                                      • Nokia N900 => Secondary Device for Experiments and Mods. LOVE THIS DEVICE...
                                      • Google Pixel 3a XL => Using This Device as Secondary Device -- UT 20.04 Version
                                      * 1 Reply Last reply 23 Oct 2024, 18:59 Reply Quote 0
                                      • * Offline
                                        *Enrico13011978* Banned @Salah
                                        last edited by 23 Oct 2024, 18:59

                                        Oh well, you will be successful.

                                        1 Reply Last reply Reply Quote 0
                                        53 out of 61
                                        • First post
                                          53/61
                                          Last post