Separate thread for Preferred Applications (desktop-defaults-set) enhancement

Forum Forums antiX-development Development Separate thread for Preferred Applications (desktop-defaults-set) enhancement

  • This topic has 35 replies, 5 voices, and was last updated Sep 1-6:02 pm by marcelocripe.
Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • #87767
    Moderator
    Brian Masinick
      Helpful
      Up
      0
      ::

      Credit to all of you for working on these tools. Even when defects or mistakes are made, learning is possible. Transparency in sharing both our successes and failures can help all of us learn something, whether it’s learning additional coding habits or gaining humility and the ability to share with people who have a wide range of experiences. Thank you for showing us the process and the results; I think it is well worth it and I appreciate this discussion.

      --
      Brian Masinick

      #87774
      Moderator
      BobC
        Helpful
        Up
        0
        ::

        Its a challenge to be sure… Learning new programming languages is always that way. Each thing you work on teaches new lessons, and over time you get better at it, learning things from the examples provided by previous authors, and hopefully not breaking anything permanently along the way.

        Evidently, my echo to try to figure out what YAD returned broke the function that checked to see if you cancelled or closed the YAD box, and so it always came back saying update, even if nothing was selected, so the variable telling it what was selected was empty, and so the routines dutifully emptied all your selections. The selection values being empty caused it not to know where to locate the files, or what to link them to, so they got created empty and broken wherever the programs was run from. If you cancelled and had the problem, you could delete the bad links and create new ones by telling it to update instead.

        #87776
        Moderator
        Brian Masinick
          Helpful
          Up
          0
          ::

          Yes, it’s possible that echo commands anywhere near the yad statement would indeed alter the return code for any logic surrounding any yad logic.

          I wrote a few yad programs and scripts to simply display a digital clock; I was able to do it but I had a lot of help with the logic and the specific commands.

          They’re powerful and fickle!

          --
          Brian Masinick

          #87816
          Moderator
          BobC
            Helpful
            Up
            0
            ::

            I updated script to require Video and Player categories for Video players, as well as Audio and Player categories for Audio Players. I updated the rox-filer.desktop to include Marcelo’s translations, and the sound testing .desktop files to include the NoDefault categories entry to keep them off the list of apps selectable as the default Audio Player, since they are not usable for that purpose.

            Let me know if you try this and if any problems are found.

            Thanks

            #87903
            Moderator
            BobC
              Helpful
              Up
              0
              ::

              I did more testing and tweaking with Marcelo, and am now checking the MimeType= settings if provided, for image, video, and audio for those 3 groups.

              I still had problems with a few antiX specific .desktop files which had the Categories entry of AudioVideo but didn’t have MimeType entries and are not able to play video. I removed the word Video from the Categories entry on those. I am hoping anticapitalista will be ok with those changes. If not, then I would suggest adding a MimeType entry to clarify what the player can play, or perhaps a NoVideo Categories entry (not my preference).

              For those changed .desktop entries to work, they need to replace the originals in /usr/share/applications or /usr/share/applications/antix

              If anyone tries the program, please provide feedback, especially if any problems are found. I think for translations to work completely, Marcelo will need to rerun his program that generates the translation files. There were no changes to the text, but the line numbers have changed.

              #87907
              Member
              marcelocripe
                Helpful
                Up
                0
                ::

                I think for translations to work completely, Marcelo will need to rerun his program that generates the translation files.

                BobC, it wouldn’t really be a program, but it’s the Xecure instructions in the topic Internationalisation of antiX community scripts. At first, I hadn’t been able to understand anything Xecure had explained. Robin patiently explained to me via HexChat how to use Xecure’s teachings. With communication is much more dynamic via HexChat, due to Robin’s automatic translation program, it is easier to learn about anything.
                As soon as possible, I will send you the .pot files and the pt-BR translations of the files (.po and .mo).

                – – – – –

                I think for translations to work completely, Marcelo will need to rerun his program that generates the translation files.

                BobC, não seria bem um programa, mas são as instruções do Xecure no tópico Internationalisation of antiX community scripts. A princípio, eu não havia conseguido compreender nada do que o Xecure havia explicado. O Robin com muita paciência me explicou via HexChat em como utilizar os ensinamentos do Xecure. Com a comunicação é muito mais dinâmica via HexChat, devido o programa de tradução automática do Robin, fica mais fácil de aprender sobre qualquer coisa.
                Assim que for possível, eu te enviarei os arquivos .pot e as traduções em pt-BR do arquivos (.po e .mo).

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