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.
-
AuthorPosts
-
October 29, 2022 at 6:55 pm #91765Member
blur13
::I agree with Robin, better to describe what it actually does. Maybe “show all desktop files” or “show all programs”. Something like “expert mode” might scare new users from even trying.
October 29, 2022 at 8:37 pm #91771MemberPPC
::Hi! I just tested the script: the geany not showing up bug once you selected another T.E. appeared again (so some of Bob’s fixes may have been forgot along the way- that happens to me a lot, in my scripts 🙁 ).
Other than that, it works great- the “Apply” button is consistent in both screens, on the lower right, as expected.
Now, on both screens, the only thing that gets localized is the window title (that is to be expected, since the strings changed, right?).I’m agnostic about the description of the new button, but I usually go with “advanced.,.”
One thing missing- apply the “yellow star” icon to both yad window titles 🙂
P.
October 29, 2022 at 9:26 pm #91774MemberRobin
::Hi PPC,
once you selected another T.E.
Could you please explain what T.E stands for here? I do know E.T, but what’s T.E? (It’s always a bit difficult to guess proper meaning from abbreviations in a foreign language). This update is based on the most recent version found in antiX 22, since the version BobC was working on originally has turned out to be outdated, while it still might contain some additional fixes he applied, which should be missing then in the most recent antiX 22 version also. Please, could you countercheck with this version?
Now, on both screens, the only thing that gets localized is the window title (that is to be expected, since the strings changed, right?)
If you don’t see the translations, you still have outdated translation files. On antiX 22 the default files set works properly with this, everything besides of the few new strings are translated already. The translation strings used here match exactly with what already was present on transifex (antiX development), all old strings have been reused, so they should turn up properly with this improved version also, if you don’t have some very outdated version installed (like the one BobC had started with).
Btw, I forgot to mention:
This script is not set to executable.
This can’t be helped when downloading the script from gitlab. If you store something using an internet-browser it won’t ever have its default permissions and ownership set for execution, you need to fix this before using. Either use chmod 755 and chown root:root in console or do it in GUI using e.G. zzzFM, right click → properties → permissions. Set both, group and owner to root and set it executable for users, group and others.
Regards
RobinWindows is like a submarine. Open a window and serious problems will start.
October 29, 2022 at 9:55 pm #91776MemberRobin
::About wording:
“show all desktop files” or “show all programs”
A newcomer probably can’t make anything of “desktop files”, while “show all programs” could be easily misunderstood, user will expect to find some more program categories with this he can assign, while the very same categories as before are presented only. This is also the very problem when sticking to the familiar wording like PPC prefers:
“advanced.,.”
You expect some additional settings then. But I’m with you when saying:
Something like “expert mode” might scare new users from even trying.
This is true I think. Otherwise this would be a great choice also. Only “experts” (meaning: experienced users) should use it, to avoid mess up the system completely.
So, maybe a native speaker could tell us, whether better using
“Free Choice” or “Free Selection” for the button engraving. Both would describe very precise what user will get when clicking on it.Besides, Marcelo has asked on IRC to allow translation for the “Cancel” and “Apply” button also, instead of using the default GTK-buttons here. Any concerns about this, besides it does mean some additional strings to be translated by translators? Should these engravings get added to the individually translatable strings?
Windows is like a submarine. Open a window and serious problems will start.
October 29, 2022 at 11:05 pm #91780MemberRobin
::the geany not showing up bug once you selected another T.E. appeared again
Not here. I’ve just checked this. Possibly you are running it on an outdated system? Geany is present properly for me, and when switching and saving to something else, next time geany appears properly in the pulldown menu for selection, and if sellected and applied, it is set again as the default. So, on what antiX version are you running it? It doesn’t seem to be compatible with the antiX 22 script version, not in translation strings and also not in functionality.
so some of Bob’s fixes may have been forgot along the way
The precise code lines Bob had added have obviously not been taken over 1:1 as I’ve seen, but very similar structures are present, which work the same way. I didn’t touch them at all while adding the free selection menu from the former version, all this was kept exactly from the most recent antiX 22 version of the script, as said before. So I believe it should be fine.
Here’s what I get for selection on most recently updated antiX 22:
Terminal: Roxterm, Rxvt color... Browser: Firefox, Dillo, Links2 File manager: Session file manager, Midnight Commander, Roxfiler, zzzFM Email: Claws, Thunderbird Texteditor: Geany, Leafpad, Midnight commander, Vim Imageviewer: Mirage, Feh, GTKam Video: Celluloid, MPV, SMtube, ytfzf Audio: XMMS, Poor man's, MPV, ytfzfWindows is like a submarine. Open a window and serious problems will start.
October 30, 2022 at 8:22 am #91798MemberRobin
::Restored the fix for the -1 issue which wasn’t transfered into in the antiX 2022 version of the script still. Please recheck, also on antiX base systems, where this error had occurred originally. And please be aware you need the most recent language files to see any translations, since there have been removed some untranslatable code parts from the strings by anticapitalista at 1.10.2022/17.10.2022 already, he did there exactly what I also had done later again on the outdated script version you’ve been working with by now. These files from transifex (antiX-development) will still not translate the few latest new strings Wallon has pointed to.
— Download script from gitlab, you need to chmod 755 and chown root:root them, copy to “/usr/local/bin” folder.
— Download .pot translation resource file from gitlab. Use e.g. poedit to create your own test translation from it. In poedit you can fill in translations with what you like best, or with strings found on transifex, or you can update the existing language files downloadable from transifex (see below) with it.
— Download .po language files from transifex (antiX-development), chose “download for use”. Need to get compiled to .mo type files for use with msgfmt before copying to “/usr/share/locale/<your_language-ID>/LC_MESSAGES”, or update them with poedit using the .pot file from above, then you can enter the few missing strings. (Open file in poedit, then from its menu “Translation” select “Update from POT file”. Translate the two missing strings, save and copy the resulting .mo file to the beforementioned system folder.).
Windows is like a submarine. Open a window and serious problems will start.
October 30, 2022 at 10:00 am #91806MemberPPC
::Hi, as you noticed, by T.E. I meant Text Editor- and the “bug” I reported was for antiX 19. In my old antiX 21, 32bits, the description of the apps came up correctly! The only strings that need to be corrected are the ones in the buttons (Apply, Cancel, “Free Choice”) – note that the default “GTK Cancel” button in Yad is not localized across all languages- I think it is localized in French, but it sure isn’t in Portuguese…
To avoid the hassle of localizing the buttons I usually use “OK” or “v” for the “accept changes button” and ” x ” for the “cancel button”… Since here we need to also translate the 3rd button, I seen no harm in putting all 3 buttons up for localization.P.
October 30, 2022 at 10:45 am #91808Membercalciumsodium
::Hello,
I tested this latest github version in antiX22 x64 base. It works good to change selection in the new set default program as well as the Free Choice option. I checked the web browser and text editor options.This is a new thing that I have noticed. After I click “Free Choice” button. I change my web browser from chromium to links2. If I click Apply. It is good. But if I don’t click Apply but instead click Back, it does not keep the change. When it goes back to the first screen, the web browser is still chromium. It does not have links2 selected in the first screen. So basically you have to start over. Is this what is intended? If so, then I have to make sure I click Apply in the Free Choice screen to make the change and that it I click Back, then I will have to start over.
October 30, 2022 at 12:04 pm #91811MemberRobin
::Many thanks for checking!
[…] “GTK Cancel” button in Yad is not localized across all languages […] putting all 3 buttons up for localization. […]
Then I’ll add the marker for free translation for the two remaining buttons as well, Marcelo had also asked for this already.
It does not have links2 selected in the first screen. […] Is this what is intended?
Exactly this is how it works. You can either select from the limited selection in first page, or if you don’t find here what you need, switch to the free selection in the second page. You have always to accept from the page you made your selection on, the values can’t get transferred between the two windows (at least not by now, maybe this is possible some day, but it would need some really sophisticated processing, I believe it isn’t worth the effort). This is why we can’t call it “advanced settings”, the second page is not an advanced set of options from the first page (like you see in antiXscreenshot2 tool), but it provides a completely different (free) selection method here for the very same items.
For now some more glitches are to be treated: Try installing Frescobaldi or Xournal, and see what happens to the Texteditor dropdown list… Yes, you can select now this music score editor for system wide default text editing in the first screen. Same goes for the pdf annotation tool Xournal. This needs to get fixed, since both tools can’t handle default txt files. BobC already had the idea to check the mime type here additionally so these funny proposals will be suppressed. We’ll resolve this soon I think.
Please let us know whether there are some more peculiarities you observe.
Windows is like a submarine. Open a window and serious problems will start.
October 30, 2022 at 12:41 pm #91816Membercalciumsodium
::Try installing Frescobaldi or Xournal, and see what happens to the Texteditor dropdown list…
Yes, I do see xournal as one of the options in the text editor. And the program works when I select it as the default text editor.
October 30, 2022 at 12:47 pm #91818MemberRobin
::And the program works when I select it as the default text editor.
Well, then try to open a default .txt file with it 🙂 Good luck! For me it comes up with an error message:
Error opening file ./bluetooth.txt [ OK ]So it looks like a text editor, displaying even nice lined paper for writing on, but must get excluded anyway.
Windows is like a submarine. Open a window and serious problems will start.
October 30, 2022 at 1:05 pm #91820Membercalciumsodium
::Now I see what you are saying.
I can confirm that xournal cannot open .txt files.
Please see attached screenshot.
Attachments:
October 31, 2022 at 7:25 am #91869ModeratorBobC
November 2, 2022 at 5:51 pm #92103ModeratorBobC
::antiX 22 base
File Manager – rox-filer doesn’t appear
Web Browser – seamonkey doesn’t appear if you change to dilloantiX 21 base
Web Browser – seamonkey doesn’t appear if you change to dillo
Email Client – claws mail doesn’t appear after you change to seamonkey
File Manager – follows desktop doesn’t appear after you change to midnight commander
File Manager – rox-filer doesn’t appearantiX 19.5 base
Web Browser – seamonkey doesn’t appear if you change to dillo
File Manager – follows desktop doesn’t appear after you change to midnight commander
File Manager – rox-filer doesn’t appear
Text Editor – geany doesn’t appear after you change it to leafpadantiX 19.4 full
File Manager – follows desktop doesn’t appear after you change to midnight commander
File Manager – rox-filer doesn’t appear
Text Editor – geany doesn’t appear after you change it to leafpadI wasn’t aware that the fixes from the 26th (discussed on 28th or 29th) hadn’t made it to git, yet. I’ll be gone till Sunday, but can help, then.
- This reply was modified 6 months, 1 week ago by BobC.
- This reply was modified 6 months, 1 week ago by BobC.
- This reply was modified 6 months, 1 week ago by BobC.
November 6, 2022 at 12:21 pm #92493MemberRobin
::Two new versions to check out
My new version comes with a completely rewritten filter logic. I have constructed a freely programmable filter, so it should be possible to easily avoid wrong or missing entries in the categories, simply by adding the respective keys to the filter strings. It checks for Mime type and Category both, allowing to set up exclusions and inclusions for each category separately, as well as selecting or suppressing specific executables manually in the filter setup. The latter is needed for programs which desktop files are not set up properly, containing only missing or ambiguously mime or categories entries. The filter setup might need a bit of fine tuning still, if it still comes up with some glitches. The drawback of this precise filtering is: It is slower than before. So I have written an additional status info window to inform user what’s going on while awaiting main window to come up. But check yourself, whether this is feasible:
Download Script ver. 1.4-test (executable)
Download Language resource file ver. 1.4 (.pot)
And here comes another version for testing, BobC has updated the one from last time with all still missing bugfixes from this thread during the last days. It works still with the original category selection mechanism, and hence is faster (but I believe, less precise in detection also, it shows some programs I’ve installed here which are definitely not usable for the respective category purpose here). But try yourself. I believe it could be a good compromise anyway between precision and speed, since it is way faster in detection than my new freely programmable filter logic.
Download script ver 1.3-test by BobC (executable).
Please check out what you like best and let us know any quirks.
Best Regards
RobinAttachments:
Windows is like a submarine. Open a window and serious problems will start.
-
AuthorPosts
- You must be logged in to reply to this topic.

