How do I change an icon from an app whose exec is from /opt directory?

Forum › Forums › New users › New Users and General Questions › How do I change an icon from an app whose exec is from /opt directory?

  • This topic has 10 replies, 5 voices, and was last updated Jun 21-4:26 am by Xunzi_23.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #179726
    Nouveau
    Member

      At this resplendent time, I have installed an application whose executable is in the /opt directory. I have tried to find any .png files matching the name of the applications using find. How do I change the icon of an app that is from the /opt directory?

      Just your average antiX user

      #179727
      Nouveau
      Member

        Also, the application image looks like this before I unlock the password for the application (You can set a password for the application):

        Attachments:

        Just your average antiX user

        #179729
        melodie
        Member

          You need to find the *.desktop file belonging to.this package and look for the “Icon=” line using a text editor. This will give you the name of the icon. Then look for it in /opt and also in /usr/share/icons.
          In the console cd to the said directories. Then use find:

          find . -name “*the-icon-name*”

          (Be careful not to miss a ‘.’ or a.space, nor a ” .. )

          • This reply was modified 1 year, 3 months ago by melodie.
          • This reply was modified 1 year, 3 months ago by melodie.
          • This reply was modified 1 year, 3 months ago by melodie.
          #179733
          Nouveau
          Member

            The icon’s name is session-desktop, but isn’t oftentimes the icon name different from the one that show’s up on the taskbar?

            I’ve changed the directory to /opt and /usr/share/icons

            No results came when I copied and pasted your command and changed the “the-icon-name” part to this

            find . -name “*session-desktop*”

            Just your average antiX user

            #179734
            BobC
            Moderator

              Did you check to make sure that wasn’t going to cause problems for your antiX system? Hopefully you are testing this on a live USB first.

              Of course you didn’t tell us what package it was that you installed, so we don’t have much to go on.

              Maybe it doesn’t include an icon? The one you posted is a default. If the package included a .desktop file, paste in the contents of it.

              What exactly are you trying to do?

              Here is the link to SEARCH THE FORUM >> http://www.antixforum.com/search-forums

              #179735
              Nouveau
              Member

                @BobC

                No, I am not testing on live usb.

                I installed the session messenger application following the debian install guide:

                https://docs.getsession.org/session-messenger/installing-session/installing-on-linux-debian-based-distros

                In Session Messenger, you can set a password before messages are accessed

                The icon on the page where it asks you for your password is in fact a default one

                However, when you enter the password it changes to a different icon with a green S

                I would like both to be a custom icon for both.

                Desktop file is as follows:

                [Desktop Entry]
                Name=Session
                Exec=/opt/Session/session-desktop %U
                Terminal=false
                Type=Application
                Icon=session-desktop
                StartupWMClass=Session
                Comment=Private messaging from your desktop
                Categories=Network;InstantMessaging;Chat;

                Attachments:

                Just your average antiX user

                #179746
                melodie
                Member

                  No results came when I copied and pasted your command and changed the “the-icon-name” part to this

                  find . -name “*session-desktop*”

                  Then something is wrong in their package. You might try either sudo find . -name "*session-desktop"” or “sudo ls -lR /opt/<package directory> > /hoome/you/list-files.txt

                  Then have a look in the list?

                  #179749
                  BobC
                  Moderator

                    Its good that it looks like its not a session manager that would conflict with antiX’s system.

                    If you put a copy of that .desktop file in ~/.local/share/applications antiX’s utilities might be able to find and use it. I’m guessing it will appear on the internet menu and app-select, as well as the IceWM toolbar icon manager if you do that.

                    PS: You could try changing the name of the icon in the .desktop file to the one you want to appear. My guess is it might work for the menu, app-select and the toolbar,but not sure if it will work for the taskbar.

                    • This reply was modified 1 year, 3 months ago by BobC.

                    Here is the link to SEARCH THE FORUM >> http://www.antixforum.com/search-forums

                    #179750
                    BobC
                    Moderator

                      No results came when I copied and pasted your command and changed the “the-icon-name” part to this

                      find . -name “*session-desktop*”

                      Then something is wrong in their package. You might try either sudo find . -name "*session-desktop"” or “sudo ls -lR /opt/<package directory> > /hoome/you/list-files.txt

                      Then have a look in the list?

                      He just didn’t give us the correct name of the file is my guess…

                      • This reply was modified 1 year, 3 months ago by BobC.

                      Here is the link to SEARCH THE FORUM >> http://www.antixforum.com/search-forums

                      #179766
                      Dave
                      Forum Admin

                        He just didn’t give us the correct name of the file is my guess…

                        Probably a snap file, or some other prepackaged all in one app deal.
                        Likely need to extract/download the icon file and place it in the icon pack or /usr/share/pixmaps so it can be referenced. Alternatively provide the full path in the .desktop file to the icon.

                        Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown

                        #179808
                        Xunzi_23
                        Member

                          Hi, this is Session Messenger, icons are available in the appimage usr share folder.

                          To get the icon or icons rename the appimage adding.zip at the end of the name then unpack.
                          you can copy icons to appropriate locations using rox or other file manager, sudo needed.

                          The appimage is full of chromium code, no idea how trustworthy, it might be the easier option
                          to use on antiX.
                          https://getsession.org/privacy-policy

                          Session is located in Switzerland and claims to be very private, please remember Switzerland
                          monitors all connections/connections to other by government wiretapping project and encryption
                          is under attack. Plese read. Alarming aspect of proposed Swiss law revisions is the obligation
                          to undermine encryption by backdoor or other.,
                          https://www.isoc.ch/swiss-surveillance-ordinance-encryption-threat-vupf-oscpt/

                        Viewing 11 posts - 1 through 11 (of 11 total)
                        • You must be logged in to reply to this topic.