[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 - 1 through 15 (of 36 total)
  • Author
    Posts
  • #49417
    Member
    angel7

      Hello people from antiX! Like my topic title says I wanted start an app in the tray editing your launcher app in /usr/share/applications.
      Plese look my app in leafpad:

      [Desktop Entry]
      Encoding=UTF-8
      Version=1.0
      Type=Application
      Terminal=false
      Exec="/opt/xdman/xdman"
      Name=Xtreme Download Manager
      Comment=Powerfull download accelarator and video downloader
      Categories=Network;
      Icon=/opt/xdman/icon.png
      • This topic was modified 2 years, 4 months ago by BobC.
      Attachments:
      #49420
      Forum Admin
      Dave
        Helpful
        Up
        0
        ::

        I think the line you would want to add to ~/.icewm/toolbar would be
        prog “Xtreme Download Manager” /opt/xdman/icon.png /opt/xdman/xdman

        Unless you mean to have it like the wifi/volumeicon/clipboard manager. Then add it to the startup like
        /opt/xdman/xdman &

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

        #49421
        Member
        angel7
          Helpful
          Up
          0
          ::

          didn’t work! i did put the line /opt/xdman/xdman & in Exec=

          #49424
          Forum Admin
          Dave
            Helpful
            Up
            0
            ::

            Did you add it to a startup file and restart the session?
            Either ~/.desktop-session/startup or ~/.icewm/startup

            The .desktop file was fine, though not needed for automatically starting an application. You could use a .desktop file if you enable xdg startup in ~/.desktop-session/desktop-session.conf and copy the .desktop file to ~/.config/autostart

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

            #49429
            Member
            angel7
              Helpful
              Up
              0
              ::

              I edited the file ~/.desktop-session/startup and did not start in tray. It start but open the window and I need to close app every time I reboot or turn off the computer to stays in the tray.

              it opens two extreme download now because I checked in app to start in the tray with the system but does not start in the tray like i Said above.

              # Uncomment if using pulseaudio (you need to install it)
              #pulseaudio -D &
              
              # Uncomment if using network-manager  (you need to install it)
              #nm-applet &
              
              # Used on live system only
              
              #Extreme Download Manager
              xdman &
              
              • This reply was modified 2 years, 4 months ago by angel7. Reason: + information
              #49432
              Member
              ModdIt
                Helpful
                Up
                0
                ::

                I understand you want to autostart an application, sample also assigns a desktop.
                Please search BobC and Moddit threads autostart applications for a lot of detail
                and method information…

                One example for icewm would look like this. You need to install wmctrl for this method.
                Change application name or names to fit your requirement.
                Put following in /home/your username/.icewm/startup

                wmctrl -s 2 #Switches to workspace 1=2nd workspace
                palemoon &
                sleep 2
                wmctrl -s 0 #Switches to workspace 0=1st workspace
                claws-mail &

                #49433
                Member
                Xecure
                  Helpful
                  Up
                  0
                  ::

                  angel7, you cannot expect us to know how the specific program xdman works.
                  There is probably a configuration window to make it launch minimized or in the system tray. Or maybe the manual has a parameter to launch it minimized, like
                  /opt/xdman/xdman -m

                  Each program is coded differently, so we don’t know how to do things for every program. You will need to check the website or the manual to figure out the parameter needed or it to start minimized in the system tray or if there is a configuration window for this program to do so.

                  By the way, to make it clear. Do you want this program to autostart when you boot your computer or do you only want the program to launch minimized when you click to launch it? People are giving you advice of how to auto-start it, but I don’t think this will help to launch it to system tray until you can figure out if there is a configuration window.

                  antiX Live system enthusiast.
                  General Live Boot Parameters for antiX.

                  #49435
                  Member
                  ModdIt
                    Helpful
                    Up
                    0
                    ::

                    just a note, together with BobC and help from Icewm Devs autostarting applications was discussed, fully working methods found and described
                    here in the forum. The ICEWM window manager is the only controlling instance in majority of cases.

                    wmctrl and iceshell are all that is needed to configure applications to start as user wants, exception is for example Libreoffice which
                    remembers window size on closing.

                    Can we please let questioners explore the previous forum posts, test what is suggested then ask for more help if needed.

                    #49438
                    Member
                    manyroads
                      Helpful
                      Up
                      0
                      ::

                      Hi @angel17 Here are commands that work for me…. pulseaudio & nm-applet.

                      As fo xdman I’d guess you need either a config or flag set. I don’t use xdman.

                      # set network manager #####################
                      nm-applet &
                      
                      # set sound functions #####################
                      #volumeicon &
                      /usr/local/bin/pulse-start &

                      Pax vobiscum,
                      Mark Rabideau - http://many-roads.com
                      "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                      dwm & i3wm ~Reg. Linux User #449130
                      20 Jan 2021 ~ "End of an Error"

                      #49441
                      Member
                      angel7
                        Helpful
                        Up
                        0
                        ::

                        I’ve tried this. Please look my post above

                        #49444
                        Member
                        Xecure
                          Helpful
                          Up
                          0
                          ::

                          Is there no configuration window for that app taht lets it start in minimized/system tray mode? “Options” or “Configuration” buttons should have these options. This is not related to the distro, but to the program.

                          antiX Live system enthusiast.
                          General Live Boot Parameters for antiX.

                          #49448
                          Forum Admin
                          Dave
                            Helpful
                            Up
                            0
                            ::

                            I edited the file ~/.desktop-session/startup and did not start in tray. It start but open the window and I need to close app every time I reboot or turn off the computer to stays in the tray.

                            it opens two extreme download now because I checked in app to start in the tray with the system but does not start in the tray like i Said above.

                            Sorry I have a hard time understanding what you are trying to do.
                            Normally an option within the program like that places a .desktop file in ~/.config/autostart/……desktop.
                            If there is such a file there, the exec line you would need is in that file. You could also enable xdg satartup in ~/.desktop-session/desktop-session.conf to use that .desktop file.

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

                            #49450
                            Anonymous
                              Helpful
                              Up
                              0
                              ::

                              .

                              #49487
                              Member
                              ModdIt
                                Helpful
                                Up
                                0
                                ::

                                You might try adding to your /home/your user/.icewm/winoptions file. Not sure if this will work for xdman
                                but worth trying.
                                Other applications i tested it works fine. You may need to check with xprop if the start command and name
                                are correct.

                                xdman.xdman.startMinimized: 1

                                #49499
                                Member
                                LikkMii
                                  Helpful
                                  Up
                                  0
                                  ::

                                  I want to remove the extra workspaces in the tray ??

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