[SOLVED] I wanna that an app start in a tray

Forum Forums New users New Users and General Questions [SOLVED] I wanna that an app start in a tray

  • This topic has 35 replies, 9 voices, and was last updated Jan 10-7:50 pm by angel7.
Viewing 15 posts - 16 through 30 (of 36 total)
  • Author
    Posts
  • #49500
    Member
    angel7
      Helpful
      Up
      0
      ::

      yes there is, it’s all checked “Run xdm when system start” “show tray icon”. But it open a window and does not start in the tray

      #49501
      Member
      LikkMii
        Helpful
        Up
        0
        ::

        extra workspaces to remove

        • This reply was modified 2 years, 4 months ago by LikkMii. Reason: screenshot
        Attachments:
        #49504
        Member
        angel7
          Helpful
          Up
          0
          ::

          another question: how to put icons beside the button of start menu?

          #49505
          Moderator
          caprea
            Helpful
            Up
            0
            ::

            @LikkMii
            menu > controlcentre > desktop > icewm settings
            Go to the preferences tab and search for

            # Show workspace switching buttons on task bar
            TaskBarShowWorkspaces=1 # 0/1

            On mine it’s line 311, 312
            and change to

            # Show workspace switching buttons on task bar
            TaskBarShowWorkspaces=0 # 0/1

            #49507
            Moderator
            caprea
              Helpful
              Up
              0
              ::

              how to put icons beside the button of start menu?
              angel7, there’s a GUi for this
              menu > applications > antiX > Toolbar manager for Icewm

              #49508
              Moderator
              BobC
                Helpful
                Up
                0
                ::

                I know nothing about this program except that it isn’t in the repos and the script it downloaded wouldn’t open with geany. I setup a separate test computer running from flashdrive to figure it out. I would not install this on my system. I am no expert on this subject. I did find the source (it was on github, not sourceforge) but am not capable of reading or understanding it.

                In ~/.icewm/winoptions put:

                xdman-Main.tray: Minimized
                

                In ~/.icewm/startup put:

                /opt/xdman/xdman &
                (sleep 2 && xdotool search  "XDM " windowminimize)
                

                I see they have a browser extension, and found it needs to be added also.

                Search results in Add-ons for Firefox:

                XDM Browser Monitor
                XDM Browser Monitor

                XDM integration module for Firefox Quantum. This addon should be used with XDM 2018 and higher to take over download from Firefox. Please visit https://github.com/subhra74/xdm for more information.

                Rated 4.6 out of 5
                subhra74

                • This reply was modified 2 years, 4 months ago by BobC.
                #49510
                Moderator
                BobC
                  Helpful
                  Up
                  0
                  ::

                  After setting it up, I had to add it to the browser also. With both installed it then worked. I tested by downloading a 200 mb file. I then rebooted and downloaded the same 200 mb file. The download times were about the same, 10 seconds or so. Maybe it does better downloading uncompressed files, but I think most movies and files and music and pictures are stored in compressed formats.

                  Anyway, it did work and didn’t cause any other problems that I saw.

                  PS: once this is running from startup there is no need to put it on the menu or toolbar. I just copied the .desktop file to ~/Desktop (the English spelling) to run it from my Desktop folder list while testing

                  • This reply was modified 2 years, 4 months ago by BobC.
                  #49527
                  Member
                  angel7
                    Helpful
                    Up
                    0
                    ::

                    now it opens two: one in the tray and another in a window.

                    • This reply was modified 2 years, 4 months ago by angel7. Reason: Attach
                    Attachments:
                    #49532
                    Moderator
                    BobC
                      Helpful
                      Up
                      0
                      ::

                      In ~/.icewm/startup remove the first line I had you add. You must also have something else also starting the program:
                      /opt/xdman/xdman &

                      It would probably be easiest to reboot after making the change to see if it works

                      #49534
                      Member
                      angel7
                        Helpful
                        Up
                        0
                        ::

                        I removed the first line like you say but the issue persist.
                        also add the line:

                        xdman
                        (sleep 1 && xdotool search  "XDM" windowminimize)

                        even with “sleep 2” the issue persist.

                        • This reply was modified 2 years, 4 months ago by angel7.
                        #49536
                        Moderator
                        BobC
                          Helpful
                          Up
                          0
                          ::

                          Adding it back again caused it to run twice again.

                          Its already running once from someplace else

                          The sleep is there to allow it to get onto the screen before we minimize it

                          • This reply was modified 2 years, 4 months ago by BobC.
                          #49551
                          Member
                          angel7
                            Helpful
                            Up
                            0
                            ::

                            I removed extreme download manager! now I’m using another that works in the tray! Thanks for your help and patience.

                            #49555
                            Moderator
                            BobC
                              Helpful
                              Up
                              0
                              ::

                              Please provide the details of what you ended up using, why you chose it instead, and how you implemented it so that other people reading this thread are helped, too.

                              Also, please add the word SOLVED to the description on the first post if you can.

                              Thanks and I’m glad its solved.

                              #49556
                              Member
                              angel7
                                Helpful
                                Up
                                0
                                ::

                                I’m using persepolis that I build from the source and i can’t mark with solved because extreme download manager does no start in tray. every time that I reboot i had to minimize xdman to stay in tray.

                                #49560
                                Moderator
                                BobC
                                  Helpful
                                  Up
                                  0
                                  ::

                                  Angel7, you disabled what I gave you to make it go to the tray. Remember when you reduced the sleep to 1? That meant the window needed to be up by then, or minimizing it wouldn’t work.

                                  I setup a computer from scratch with antiX 19.3 specifically to make this work for you, and it did/does work on that machine here.

                                  To get an app to run and then minimize to the tray instead of taskbar, here is how I got it to work:

                                  I installed the xdman program.

                                  When I run /opt/xdman/xdman a window comes up. From a terminal I run xprop and point to the window to get the WM_CLASS(STRING) xdman-Main needed to put into winoptions and the WM_NAME(STRING) XDM 2020 needed for xdotool

                                  Tell it that when it runs, if it gets minimized, minimize to the tray – In ~/.icewm/winoptions I added:
                                  xdman-Main.tray: Minimized

                                  Tell it to run the program in background so it isn’t waiting for input, then wait 2 seconds (on slower machine this might need to be higher) for it to load, and then minimize it – In ~/.icewm/startup put:

                                  /opt/xdman/xdman &
                                  (sleep 2 && xdotool search "XDM " windowminimize)

                                  PS: I tried this on a slower machine and sleep of 2 was too fast. I had to increase it, and it worked fine with sleep 5

                                  • This reply was modified 2 years, 4 months ago by BobC.
                                Viewing 15 posts - 16 through 30 (of 36 total)
                                • You must be logged in to reply to this topic.