Opera Launcher on Toolbar

Forum Forums New users New Users and General Questions Opera Launcher on Toolbar

  • This topic has 12 replies, 5 voices, and was last updated Oct 21-11:37 pm by rokytnji.
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #90941
    Member
    Ironfighter

      I would like to have a launcher icon on the toolbar but I can’t crack it.
      I have attached my “toolbar” info below from the “Change ICEWM change settings” in the control centre.
      I have tried a few different option without success.
      Help would be greatly appreciated

      `# This is a default toolbar definition file for IceWM
      #
      # Place your personal variant in $HOME/.icewm directory.

      ### Commonly used applications
      prog “Software Installer” /usr/share/icons/papirus-antix/48×48/apps/packageinstaller.png su-to-root -X -c packageinstaller
      prog “Unplug Removable Device” /usr/share/icons/papirus-antix/48×48/devices/drive-removable-media-usb.png unplugdrive.sh
      prog “File Manager” /usr/share/icons/papirus-antix/48×48/apps/file-manager.png desktop-defaults-run -fm
      prog “Mozilla Firefox” firefox /usr/bin/firefox
      prog “Web Browser” /usr/share/icons/papirus-antix/48×48/apps/web-browser.png desktop-defaults-run -b
      prog “Freeplane” freeplane /usr/bin/freeplane %F
      prog “Stacer” stacer /usr/bin/stacer
      prog “Catfish” catfish /usr/bin/catfish %F
      prog “Document Scanner” /usr/share/icons/papirus-antix/48×48/devices/scanner.png simple-scan
      prog “Thunderbird” /usr/share/icons/papirus-antix/48×48/categories/thunderbird.png /usr/bin/thunderbird
      prog “Galculator” /usr/share/icons/papirus-antix/48×48/categories/galculator.png galculator
      prog “Youtube video player” /usr/share/icons/papirus-antix/48×48/categories/youtube.png x-terminal-emulator -e /usr/local/bin/ytfzf
      prog “LibreOffice Calc” /usr/share/icons/papirus-antix/48×48/categories/libreoffice-calc.png libreoffice –calc
      prog “LibreCAD” /usr/share/icons/papirus-antix/48×48/categories/librecad.png librecad
      prog “ksnip” /usr/share/icons/hicolor/scalable/apps/ksnip.svg ksnip
      prog “FreeCAD” /home/laurie/desktop/FreeCAD/freecad-icon.png
      prog “Opera” opera/usr/bin/opera

      • This topic was modified 6 months, 2 weeks ago by Ironfighter.
      #90943
      Moderator
      christophe
        Helpful
        Up
        0
        ::

        Hello ironfighter,

        Look closely at the other lines. The pattern is: prog + “name of app” + icon-or-path-to-icon + executable-program-name

        So this should work:

        prog "Opera" /usr/share/icons/papirus-antix/48x48/categories/opera.png /usr/bin/opera

        edit: As I look at your file again, I think you only went wrong by omitting the “space” between your icon & the executable, so:

        prog "Opera" opera opera or prog "Opera" opera /usr/bin/opera will probably work fine.

        (Also, take a closer look at your “FreeCAD” shortcut entry — it seems you have an icon, but no executable program listed.)

        • This reply was modified 6 months, 2 weeks ago by christophe.

        confirmed antiX frugaler, since 2019

        #90946
        Moderator
        BobC
          Helpful
          Up
          0
          ::

          If Opera is on your menu, the easy way is just to copy the prog line for it from menu-applications, but yes, Christophe’s reply is correct. You can find the syntax in the IceWM manual on the Help menu…

          toolbar

          The toolbar configuration file is used to put programs as buttons on the taskbar. It uses the same syntax as the menu file.
          programs

          Usually automatically generated menu configuration file of installed programs. The programs file should be automatically generated by wmconfig (Redhat), menu (Debian), or icewm-menu-fdo.

          Programs can be added using the following syntax:

          prog “title” icon_name program_executable options

          #90947
          Member
          Ironfighter
            Helpful
            Up
            0
            ::

            Thank you Christophe and Bob C. I have Opera on the toolbar now. But now I can’t get FreeCAD on there – maybe because it is an appimage?

            prog “FreeCAD” /home/laurie/desktop/freecad-icon.png freeCAD.Appimage
            prog “Opera” opera opera

            Attachments:
            #90949
            Moderator
            BobC
              Helpful
              Up
              0
              ::

              1. /home/Laurie/Desktop probably isn’t in your $PATH, and so the system won’t open it unless you use the full path and filename in your toolbar entry.

              2. In the entry, you also need to spell the program name exactly correctly. This tells me you aren’t using copy/paste, and that leads to making typo errors like you did.

              3. You also need to make sure the program is marked as executable or it won’t run. The file manager you are using looks nice but isn’t configured to show you what you need to know.

              4. I’d suggest watching antiX videos oriented to running it to get a better feel for what’s available and how to do things.

              5. I would expect if you had installed the version of FreeCAD from the repos the system would have automatically added it to your menu, and you could have used the IceWM Toolbar Icon Manager to add it to your toolbar a bit more easily, but at this point I wouldn’t recommend that because its an older version than what is available on their site. You should have a look at the other packages the authors recommend or suggest to install along with it, as you might find some useful programs.

              • This reply was modified 6 months, 2 weeks ago by BobC.
              #90951
              Member
              ModdIt
                Helpful
                Up
                0
                ::

                Hi Ironfighter,
                is the free cad appimage already in your personal menu. Without that your entry in the taskbar is void of function.
                Only installed applications are automagicaly added to system. Appimage or portable packages such as browsers are not.
                the system must be shown they exist and an application entry generated. Manualy or use provided tool.

                Lets do it:
                Open control center maintenance tab, chose Menu maintenance tab, Personal menu (not sure of exact names in english)
                chose add entry, click an entry, I chose adblock, change the name in the textbox you will be presented with to, in
                your case freecad. In the line startparameter add the full adress to the freecad appimage. Lazy way mark it
                with rox (the appimage)and right click on the application, chose rename from listbox, copy the full path from the rename
                text box, paste in to the startparameter entry. mark use alternative icon, click on OK button. In next box chose manualy
                add an icon. It can be pretty much anywhere but not in the packed appimage. Once you have chosen the icon follow instructions
                in the textbox to add and update menu.

                Use the line from /home/yourusername/.icewm/personal to add to toolbar.

                Sounds like a lot of actions, actualy its easy, fast and just works.

                I unsure if a fitting icon is present in antiX. You can try to unpack the appimage, move a copy in to a new folder,
                rename to appimageName.zip and try to unpack. Most but not all appimages can be opened that way. I do it wherever
                possible and set my starter accordingly. You may be able to start the binary directly, often there is a starter script
                to point to. It must be set to executable, again right click on it with rox, chose rights (second from bottom of window),
                Follow instruction.

                Whenever I get an appimage I unpack it, I prefer to know what is inside the package. if it will run unpacked, not all want
                to do so, I run it that way for faster starting.

                #91024
                Member
                Ironfighter
                  Helpful
                  Up
                  0
                  ::

                  Thanks for the feedback Bob. I am pretty sure the path is correct. I moved the appimage to my desktop and renamed it. I also made it executable by right clicking on the file and enabling it to run as an executable. It runs fine when I click on it. Any suggestion regarding a file manager are welcome.
                  it is still not showing on the toolbar so I am going to attempt Moddit’s solution. If that fails I will look at other options from synaptic or the FreeCAD website. The reason I want the weekly build appimage is that it has some features that I like.

                  #91027
                  Member
                  Ironfighter
                    Helpful
                    Up
                    0
                    ::

                    I am still struggling with this. I think I followed your instructions Moddit but still no sign of FreeCAD on the Toolbar OR in the Personal Folder Menu??
                    I also unpacked the appimage., made it executable but it wouldn’t run? Maybe you can see something from the screenshots that I am missing?

                    Attachments:
                    #91031
                    Moderator
                    BobC
                      Helpful
                      Up
                      0
                      ::

                      Oh my! No hill for a climber…

                      The easy way to fix it is to install FreeCAD 0.19 the normal way for antiX. Afterwards it should have automatically been added to the menu. I will warn you that this will install a LOT of dependent programs, and close to 600 mb of disk, but it should work.

                      antiX menu >> Applications >> antiX >> antiX Updater
                      antiX menu >> Control Centre >> Software tab >> Manage Packages
                      Click Search and look for freecad
                      Click it and then right click it and click Mark for Installation
                      Then click Apply up near the top
                      an Apply changes box comes up, click Apply again
                      It will take a bit to install, and then a box will come up saying Changes applied, click Close
                      Now go to the Graphics menu and FreeCAD will be there

                      If you want you can copy it’s line from the ~/.icewm/menu-applications file to your toolbar like you were trying to do, and then Restart IceWM from the Logour pullout menu, or you can use the IceWM toolbar icon manager from the menu to add it to your toolbar.

                      Now, when it gets updated, your system will update it automatically.

                      If you really want to continue trying the hard way because you really need the newest version, keep reading…

                      Did you save the toolbar file after you changed it? I would guess you did…
                      Did you restart IceWm after you changed and saved it? Maybe not?

                      Did you make it executable like the instructions like the instructions on the website said to? You needed to go to the appimage page to see it. And then you needed to type the correct filename, not the one shown on the site.

                      I think that was your problem…

                      But wait, you said you DID make it executable… Use the first 2 lines below to check your work, and paste the results here

                      Go to a terminal and paste in these commands one at a time. If you don’t know what any of them mean, go investigate. In general we are creating 4 .txt files for you to upload here so we can see exactly what is in your Desktop folder and the relevant stuff in your .icewm folder. That should provide the clues to figure it out:

                      cd ~/Desktop
                      ls -l 
                      chmod +x FreeCAD<press tab key after FreeCAD and it will fill in the rest of the filename, then press enter>
                      ls -l
                      

                      Leave the terminal open…

                      If it is executable, run it from the terminal by typing:
                      ./FreeCAD<press tab key after FreeCAD and it will fill in the rest of the filename, then press enter>

                      • This reply was modified 6 months, 2 weeks ago by BobC.
                      • This reply was modified 6 months, 2 weeks ago by BobC. Reason: i found the problem by duplicating it on a flashdrive antiX 22
                      • This reply was modified 6 months, 2 weeks ago by BobC.
                      #91041
                      Member
                      Ironfighter
                        Helpful
                        Up
                        0
                        ::

                        Here we are. I am beginning to wonder if I have more than two desktops because no of those files are showing on my physical desktop and there is only the help video in the Personal Menu?

                        Edit : away from my computer at the moment – but had difficulty uploading the terminal output – the site wouldn’t let me upload a geany text file, then thought I was posting spam on the next attempt. I will have another go tomorrow.

                        • This reply was modified 6 months, 2 weeks ago by Ironfighter.
                        #91089
                        Moderator
                        BobC
                          Helpful
                          Up
                          0
                          ::

                          It’s different, I would say…

                          If you are running the default rox-icewm desktop, then the desktop you see is not the ~/Desktop folder, but rather a list of icons in a file named pb_antiX-icewm.

                          If you are running the zzz-icewm desktop, then the desktop you see IS really the ~/Desktop folder.

                          You can paste text within CODE blocks into the posting inline here, but you are allowed up to 4 attachments to a posting, and to upload to this website as attachments, the files need to be saved-as with the extension .txt or .jpg

                          It sounds like you really are willing to put effort into getting the more current appimage to run.

                          Go to a terminal and paste in these commands one at a time. If you don’t know what any of them mean, go investigate. In general we are creating 4 .txt files for you to upload here so we can see exactly what is in your Desktop folder and the relevant stuff in your .icewm folder. That should provide the clues to figure it out:

                          cd ~/Desktop
                          ls -l > ~/desktop-lsl.txt
                          cd ~/.icewm
                          ls -l > ~/icewm-lsl.txt
                          cp toolbar ~/icewm-toolbar.txt
                          cp menu-applications ~/icewm-menu-applications.txt
                          
                          • This reply was modified 6 months, 2 weeks ago by BobC.
                          • This reply was modified 6 months, 2 weeks ago by BobC.
                          #91142
                          Member
                          Ironfighter
                            Helpful
                            Up
                            0
                            ::

                            Attached is the text file. Sir Edmund Hilary would be proud of you BobC – helping me can be quite a challenge.
                            @moddit I am also please to tell you that FreeCAD is now in my personal menu and is running!
                            Thank you to you both and Christophe for your help

                            Laurie@antix1:~
                            $ cd ~/Desktop
                            Laurie@antix1:~/Desktop
                            $ ls -l 
                            total 933344
                            -rwxr-xr-x 1 Laurie Laurie       983 Nov 13  2021  antiX-docs.desktop
                            -rw-r--r-- 1 Laurie Laurie     25223 Oct 19 17:23  desktop.png
                            -rw-r--r-- 1 Laurie Laurie      1711 Nov 13  2021  file-manager.desktop
                            -rwxr-xr-x 1 Laurie Laurie 955655360 Oct 19 16:32  FreeCAD
                            -rwxrwxrwx 1 Laurie Laurie      7445 Jun 26  2021  freecad-icon.png
                            -rwxr-xr-x 1 Laurie Laurie      2057 Feb 14  2022  FreeFileSync.desktop
                            -rw-r--r-- 1 Laurie Laurie     14538 Oct 20 14:25 'ICEWM Personal.png'
                            -rw-r--r-- 1 Laurie Laurie      6010 Oct 20 13:44  ICEwmtoolbar.png
                            -rw-r--r-- 1 Laurie Laurie       276 Sep 15 13:42 'Proposed Grub Updates'
                            -rw-r--r-- 1 Laurie Laurie      1558 Oct 19 14:19  toolbar
                            Laurie@antix1:~/Desktop
                            $ chmod +x FreeCAD 
                            Laurie@antix1:~/Desktop
                            $ ls -l
                            total 933344
                            -rwxr-xr-x 1 Laurie Laurie       983 Nov 13  2021  antiX-docs.desktop
                            -rw-r--r-- 1 Laurie Laurie     25223 Oct 19 17:23  desktop.png
                            -rw-r--r-- 1 Laurie Laurie      1711 Nov 13  2021  file-manager.desktop
                            -rwxr-xr-x 1 Laurie Laurie 955655360 Oct 19 16:32  FreeCAD
                            -rwxrwxrwx 1 Laurie Laurie      7445 Jun 26  2021  freecad-icon.png
                            -rwxr-xr-x 1 Laurie Laurie      2057 Feb 14  2022  FreeFileSync.desktop
                            -rw-r--r-- 1 Laurie Laurie     14538 Oct 20 14:25 'ICEWM Personal.png'
                            -rw-r--r-- 1 Laurie Laurie      6010 Oct 20 13:44  ICEwmtoolbar.png
                            -rw-r--r-- 1 Laurie Laurie       276 Sep 15 13:42 'Proposed Grub Updates'
                            -rw-r--r-- 1 Laurie Laurie      1558 Oct 19 14:19  toolbar
                            Laurie@antix1:~/Desktop
                            $ ./FreeCAD 
                            FreeCAD 0.20.1, Libs: 0.20.1R29410 (Git)
                            © Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
                            FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
                            FreeCAD wouldn't be possible without FreeCAD community.
                              #####                 ####  ###   ####  
                              #                    #      # #   #   # 
                              #     ##  #### ####  #     #   #  #   # 
                              ####  # # #  # #  #  #     #####  #   # 
                              #     #   #### ####  #    #     # #   # 
                              #     #   #    #     #    #     # #   #  ##  ##  ##
                              #     #   #### ####   ### #     # ####   ##  ##  ##
                            
                            Laurie@antix1:~/Desktop
                            $ 
                            
                            • This reply was modified 6 months, 2 weeks ago by Ironfighter.
                            • This reply was modified 6 months, 2 weeks ago by Ironfighter.
                            • This reply was modified 6 months, 2 weeks ago by Ironfighter.
                            Attachments:
                            #91196
                            Forum Admin
                            rokytnji
                              Helpful
                              Up
                              0
                              ::

                              Usually I start the which command in terminal to find a launchers like I did with lxtask.

                              That command gives me the launch path I NEED TO MAKE A MANUAL EDITED LAUNCHER.

                              Oops. Dark in the motorcycle shop and caps lock was hit.

                              example. If you know apps name like

                              which opera

                              It might tell you it sits in /opt. Instead /usr/bin.
                              You can do the same for the freecad application entry. Then it is just a matter of finding a icon.
                              I never bother making home made desktop entry files for launchers.
                              I just like the KISS method.

                              Sometimes I drive a crooked road to get my mind straight.
                              Not all who Wander are Lost.
                              I'm not outa place. I'm from outer space.

                              Linux Registered User # 475019
                              How to Search for AntiX solutions to your problems

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