antiX 22: selecting preferred applications

Forum Forums Official Releases antiX-21/22 “Grup Yorum” antiX 22: selecting preferred applications

  • This topic has 80 replies, 9 voices, and was last updated Nov 24-6:29 pm by Robin.
Viewing 15 posts - 16 through 30 (of 81 total)
  • Author
    Posts
  • #91327
    Member
    PPC
      Helpful
      Up
      0
      ::

      Hi again, Bob,

      I edited your script to force geany to be listed, if it’s desktop file exists… (It also checks, in case geany is already displayed, it does not make it come up twice in the list). This workaround could be adjusted to forcibly add any default antiX app that is not listed in the correct category… (check the code, around line 106, for my small addictions)

      P.

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

        PPC, I’m using a machine with antiX 21 Base, and another machine with antiX 22 base, and another with antiX 22 full, as well as this one on antiX 21 full to test with, so it’s tricky with all the flashdrives to test, fix and retest on all of them.

        I fixed the Geany issue
        And the base web-browser issue,
        and the Seamonkey issues

        I did not fix the :FL translation issue, reason being I think, if possible we should fix the translation, since that’s where the real problem is.

        I need to go back to work. Urgent high priority issues . Will post the latest version after work. I do appreciate the testing and ideas. I didn’t know about the :FL thing.

        #91346
        Member
        calciumsodium
          Helpful
          Up
          0
          ::

          Hi @BobC,
          I tested your new desktop-defaults-set-20221024 version with respect to the preferred web browser option.

          This is what I found:

          1. AntiX21 x64 full. No problem so far. I can interchange between all my web browsers as the preferred one.

          2. AntiX22 x64 full. No problem so far. I can interchange between all my web browsers as the preferred one.

          3. AntiX21 x32 base. I encountered a problem. I had seamonkey, dillo, and links2 as the installed web browsers. Seamonkey was already set as the default preferred web browser. So I switched to links2 as the preferred web browser. That worked fine. But when I wanted to switch back to seamonkey as the preferred web browser, it was NOT an option. This new version did not see seamonkey.

          4. AntiX22 x64 base. I encountered a similar problem. I had chromium, dillo, and links2 as the installed web browsers. I can interchange between all web browsers as the preferred one. Then I tried the following. I installed seamonkey to see if this new version would recognize seamonkey as an option. Again, after installation of seamonkey, it did not recognize seamonkey as an web-browser option.

          Note that in the tests above in the antiX21 x64 full and antiX22 x64 full, I did not have seamonkey installed. The program worked well without seamonkey. What happens if seamonkey were installed? I did not try those tests on the full system.

          This new version does not like seamonkey somehow.

          #91349
          Moderator
          BobC
            Helpful
            Up
            0
            ::

            Yes, those fixes were still on the antiX 22 base flashdrive. I will attach the revised version.

            The translation issue PPC found is still unresolved. I will need “guidance” on that.

            #91351
            Member
            calciumsodium
              Helpful
              Up
              0
              ::

              Hi @BobC,

              I just tried this latest version desktop-defaults-set-20221024a on my antiX22 x64 base. I can confirm on my system that the seamonkey issue has been resolved. I can interchange between all my web browsers as the preferred one, including chromium and seamonkey. I don’t know anything about translations to do any tests for you in that area.

              Thanks for your work.

              #91358
              Moderator
              BobC
                Helpful
                Up
                0
                ::

                I added PPC’s translation fix. That was the only change in desktop-defaults-set-20221024b.zip. Someone else will need to test this as I see it in English, but my system isn’t setup to work in other languages. Let me know if it works Ok, please.

                I am advocating adding an “Advanced Mode” button that calls the old program that allows you to make any .desktop file you want into your default for any application option. It’s not convenient for normal users, but the power users will have control when they want it.

                #91363
                Member
                PPC
                  Helpful
                  Up
                  0
                  ::

                  @BobC – I tested the latest version of the script even in antiX 19 full, at home- it is fully localized, and switching between geany to leafpad and back again to geany worked great!
                  And I, of course, support the idea of having something like and “advanced” button that launches the previous version of the script, that’s harder to use for newbies but more powerful for more advanced users- it’s the best of both worlds.

                  P.

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

                    I added an Advanced Settings button, and if you click it, Dave’s original program runs (renamed to desktop-defaults-set-adv) and allows you to select any .desktop file, just like it did before.

                    I used the title “Advanced Settings” for the button because that exact phrase was just translated for antixscreenshot2, so that might help with translations a bit.

                    If anyone could please test on base and full for antiX 19, 21, and 22, and let me know if any problems are found, it would be appreciated.

                    #91534
                    Member
                    PPC
                      Helpful
                      Up
                      0
                      ::

                      Hi BobC- please post your updated code- there’s a way to use localization of strings available for other apps , no need to change the localization file for your own app (I used that trick a lot in my FT10 scripts)…
                      I’ll just take a look at my code and insert the correct localization in your code, when I’m feeling better, if you want…

                      Edit:
                      I just looked up how I did that “trick”. For example, for localizing the “Recent Files” ZZZFM bookmark, using text from geany, I did this:

                      export TEXTDOMAIN=geany; recents_label=$(echo “$(gettext “Recent _Files”)”)

                      To check the results:

                      echo $recents_label

                      So in your case it should be something like this (I’m not in antiX 21 now, so I can’t test it for you)

                      export TEXTDOMAIN=antixscreenshot2; advancedsettings_label=$(echo “$(gettext “Advanced Settings”)”)

                      To check the results:

                      echo $advancedsettings_label

                      P.

                      • This reply was modified 6 months, 2 weeks ago by PPC.
                      • This reply was modified 6 months, 2 weeks ago by PPC.
                      • This reply was modified 6 months, 2 weeks ago by PPC.
                      #91543
                      Member
                      marcelocripe
                        Helpful
                        Up
                        0
                        ::

                        Hello BobC and PPC.

                        I ask you not to link the translation of one program with the other program. Think about the following situation, if the second program is updated and the text lines of this second program are modified (increasing or decreasing the number of lines), the translation of the first program (desktop-defaults-set) will no longer work. Likewise, if the second program is removed from antiX or the program name is changed, the translation of the first program will be lost and the English text will be displayed.

                        It doesn’t matter how many .pot templates files need to be created, what matters is that the program (desktop-defaults-set) is complete and independent of any other program.

                        PPC, in all the tests I did of desktop-defaults-set, Geany was always visible in “pt-BR” in the text editors list. I couldn’t understand why it wasn’t displayed to you in “pt”.

                        – – – – –

                        Olá BobC e PPC.

                        Eu peço para vocês não vincularem a tradução de um programa com o outro programa. Pensem a seguinte situação, se o segundo programa for atualizado e as linhas do textos deste segundo programa for modificado (aumentando ou diminuindo a quantidade de linhas), a tradução do primeiro programa (desktop-defaults-set) não funcionará mais. Da mesma forma, se o segundo programa for removido do antiX ou modificado o nome do programa, a tradução do primeiro programa será perdida e será exibido os texto em Inglês.

                        Não importa quantos arquivos de modelos .pot será preciso ser criado, o que importa é que o programa (desktop-defaults-set) seja completo e independente que qualquer outro programa.

                        PPC, em todos os testes que eu fiz do desktop-defaults-set, o Geany sempre estava visível em “pt-BR” na lista de editores de texto. Eu não consegui compreender porque não era exibido para você em “pt”.

                        #91558
                        Moderator
                        BobC
                          Helpful
                          Up
                          0
                          ::

                          Marcelo, Yes, I understand.

                          I took the 7/18/2021 version (most recent I could find) and renamed to desktop-defaults-set-adv. I added the words “- Advanced Settings” to the title. I widened the window to fit the title. I changed the locale to desktop-defaults-set-adv to match the new program name. The translations will need to be recalculated.

                          See attached .zip file

                          #91561
                          Member
                          PPC
                            Helpful
                            Up
                            0
                            ::

                            Hi Bob… On the “advanced” script there’s (for now) no need to change the text domain

                            TEXTDOMAIN=desktop-defaults-set

                            If the main script uses my “adapted” strings from “desktop-defaults-set”, the localization, as it currently is, works fine with both scripts. The only untranslated string, in both scripts, currently is the “Advanced…” button… suggestion: if we don’t use the already existing localization- that, like Marcelo pointed out, depends on another app (which can be a bit dangerous if that app’s localization changes or the user does not have it installed), then I suggest that your script’s localization may be placed in transifex, including the “Advanced” button. (Note if that is the current course of action, then my localization fix has to be removed from the script… Yeah, localizing stuff is hard, I know it, man)

                            Edit: I just noticed that now the “Cancel” button is the first from the right to the left (usually that is the place for the “Ok” button, now the new and the advaned script have “Ok” buttons on different places- that may cause some user confusion and is bad UX…)
                            Another peculiarity is that, in some languages, yad has no localization for “Cancel” (that happens in pt) and it’s why, on my yad menus, usually the “Cancel button” just has an “X” on it, so it’s universal…

                            P.

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

                              The “Advanced Settings” phrase is also used in antixscreenshot2 for its advanced settings tab. Marcelo had asked it be a separate locale if I understood him correctly,

                              and yes, as far as translations, I don’t know much, and just trying to do what’s asked.

                              #91577
                              Member
                              calciumsodium
                                Helpful
                                Up
                                0
                                ::

                                I just noticed that now the “Cancel” button is the first from the right to the left (usually that is the place for the “Ok” button, now the new and the advaned script have “Ok” buttons on different places- that may cause some user confusion and is bad UX…)

                                I like the idea of keeping the format consistent with the other programs. Keeping [Cancel] button on the left and then [OK] button on the right.

                                How about putting the [Advanced Settings] button on the same row at the bottom, but further to the left?

                                Something like this?

                                
                                [Advanced Settings]                                [Cancel]  [OK]
                                #91578
                                Member
                                PPC
                                  Helpful
                                  Up
                                  0
                                  ::

                                  How about putting the [Advanced Settings] button on the same row at the bottom, but further to the left?

                                  Nice idea but…
                                  I have no idea how to do that in yad (the program that is used to generate the User Interface of Bob’s script). My bet is that that can’t be (easily) done… Yad is relatively easy to use and powerful, but it has many limitations (it’s not a programming language, like python, that’s harder to master, but much more powerful)

                                  P.

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