Autostart do not work, antiX-21

Forum Forums General Software Autostart do not work, antiX-21

  • This topic has 34 replies, 6 voices, and was last updated Jul 19-3:51 pm by anticapitalista.
Viewing 15 posts - 16 through 30 (of 35 total)
  • Author
    Posts
  • #85772
    Forum Admin
    Dave
      Helpful
      Up
      0
      ::

      The way the exec line is extracted from the .desktop files may need to be rewritten / fixed so that it does not use quotes internally as it is not set to use / extract shell strings…

      Since you have the xmodmap command in ~/.desktop-session/startup, try removing the .desktop file with that command from the autostart directory and see if the the other .desktop files and the startup file works. Also copy the ~/.desktop-session/current.log with the .desktop file removed from the autostart directory.

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

      #85823
      Member
      Pelucia Siffred
        Helpful
        Up
        0
        ::

        I removed the .desktop file with the command “xmodmap” and did logout, after login still nothing works, the script ~/.desktop-session/startup do not run. I don’t know why it do not run.
        The ~/.desktop-session/current.log file is attached to this message. I had to rename it putting the .txt extension to be able to attach it to this post.

        Attachments:
        #85849
        Member
        greevous
          Helpful
          Up
          0
          ::

          The command must end with a “&”, otherwise it will not work:

          touch file.txt &

          #85865
          Member
          Pelucia Siffred
            Helpful
            Up
            0
            ::

            I put a “&” at the end of command, still not work.

            • This reply was modified 10 months ago by Pelucia Siffred.
            #85876
            Member
            greevous
              Helpful
              Up
              0
              ::

              … the script ~/.desktop-session/startup do not run. I don’t know why it do not run…

              Indeed, startup does not start. There is no record of this script execution in your log.

              #85895
              Forum Admin
              Dave
                Helpful
                Up
                0
                ::

                There is another .desktop file with a shell string incorrectly quoted. Maybe try moving that one as well.
                Also could you post your ~/.desktop-session/desktop-session.conf file?

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

                #85934
                Member
                Pelucia Siffred
                  Helpful
                  Up
                  0
                  ::

                  The ~/.desktop-session/desktop-session.conf file has been renamed to desktop-session.conf.txt and attached to this message.

                  #85955
                  Forum Admin
                  Dave
                    Helpful
                    Up
                    0
                    ::

                    OK thanks.
                    Did you try removing the other autostart .desktop file with the shell code in the exec line?
                    If so and it does not work could you try disabling the xdg autostart to see if the startup script then works?
                    1) if it does then work please post a compressed file of all the .desktop files in the xdg autostart directories (~/.config/autostart + /etc/xdg/autostart)
                    2) if it does not please post the output of ls -l ~/.desktop-session/*

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

                    #85973
                    Member
                    Pelucia Siffred
                      Helpful
                      Up
                      0
                      ::

                      I created a custom script (/usr/local/bin/myconfigs.sh) and write the commands to it, then I created a .desktop file with the line “Exec=/usr/local/bin/myconfigs.sh” (without shell strings) and copy to /etc/xdg/autostart directory, now everything works fine. The problem was solved, however I wold like to make my ~/.desktop-session/startup to work because maybe a I need to use it, so to do some testing, I put a comment on the line ‘#LOAD_XDG_AUTOSTART=”true”‘ to disable the initialization of .desktop files. Now the ~/.desktop-session/startup file runs, but the .desktop files in the /etc/xdg/autostart folder no longer run. I would like a solution so that it is possible to enable autostart and at the same time run the file ~/.desktop-session/startup. Is it possible to enable both at the same time? If I have to choose I’d rather leave autostart enabled because now it’s working.
                      Another question, the shell strings issue in desktop file autostart is antiX specific or is a Linux common behavior?
                      All directories you requested have been compressed into a single file and are attached in this message.
                      I appreciate all of you who wanted to help me, thank you very much.

                      Attachments:
                      #86087
                      Forum Admin
                      Dave
                        Helpful
                        Up
                        0
                        ::

                        It is possible to enable both at the same time. I have both enabled regularly.
                        I am not sure about the shell strings in the .desktop file being a problem elsewhere (It is definitely a problem here that could be addressed). I believe that is the regular practice though to put shell commands in their own script and run the script from the .desktop file as you have done. Theoretically they should be placed in the ~/.desktop-session/startup file as this is meant for the shell commands.

                        I am not 100% certain which .desktop file would be causing the issue.
                        The one is a symlink to elsewhere (start-vidalia-if-tor-is-running.desktop) that I cannot view, but I suspect that this has a exec line calling another script which should be ok.
                        ~/.config/autostart/my-ctrl-alt-backspace.desktop has a bit of an odd exec line (as it contains a :). Maybe try moving that command to the end ~/.desktop-session/startup file and removing the .desktop file.

                        There is also an error logged for notify-osd that the file /usr/lib/notify-osd/notify-osd does not exist (Though I do not believe this is the issue).
                        Does it actually exist or is this pointing to the wrong file / notify-osd not installed.

                        If the command in my-ctrl-alt-backspace.desktop is not the issue; then all I can suggest for the moment is to move one .desktop file out of the autostart directories at a time till the ~/.desktop-session/startup file works. Hopefully then we will have it narrowed down to one file that can be focused on.

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

                        #86160
                        Member
                        Pelucia Siffred
                          Helpful
                          Up
                          0
                          ::

                          I changed the contents of the ~/.config/autostart/my-ctrl-alt-backspace.desktop file but still the ~/.desktop-session/startup file didn’t run so I moved the my-ctrl-alt-backspace.desktop file to the /etc/xdg/autostart folder and everything ran, the /etc/xdg/my-ctrl-alt-backspace.desktop file and the ~/.desktop-session/startup file. It seems that the “startup” script does not run when there are .desktop files in the ~/.config/autostart folder.

                          #86162
                          Forum Admin
                          Dave
                            Helpful
                            Up
                            0
                            ::

                            OK so there is an issue with how the ~/.config/autostart folder is used then.
                            Could you send one more time the ~/.desktop-session/current.log now with everything working?
                            Then I can compare it to my testing here when trying to resolve the issue.

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

                            #86192
                            Member
                            Pelucia Siffred
                              Helpful
                              Up
                              0
                              ::

                              The ~/.desktop-session/current.log file is attached.

                              Attachments:
                              #86205
                              Member
                              greevous
                                Helpful
                                Up
                                0
                                ::

                                I changed the contents of the ~/.config/autostart/my-ctrl-alt-backspace.desktop file but still the ~/.desktop-session/startup file didn’t run so I moved the my-ctrl-alt-backspace.desktop file to the /etc/xdg/autostart folder and everything ran, the /etc/xdg/my-ctrl-alt-backspace.desktop file and the ~/.desktop-session/startup file. It seems that the “startup” script does not run when there are .desktop files in the ~/.config/autostart folder.

                                If /home/demo/desktop-session/startup works, then I advise you to use this particular file, adding your commands to the end of it. This is the easiest way.
                                Good luck, Pelucia!

                                #86229
                                Member
                                Pelucia Siffred
                                  Helpful
                                  Up
                                  0
                                  ::

                                  I need both, /etc/xdg/autostart (for system wide config) and ~/.desktop-session/startup for user config. Now both are working (except ~/.config/autostart), so the problem has been solved. Thank you very much.

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