Forum › Forums › Official Releases › antiX-23 “Arditi del Popolo › Base: point Toolbar Web Browser icon to new browser
- This topic has 42 replies, 7 voices, and was last updated Jun 15-10:35 am by anticapitalista.
-
AuthorPosts
-
June 8, 2025 at 4:28 pm #178902
entropyagent
MemberBobC
Looking over my test suite, I think I might have worked out why you can’t get my result. I’m not sure which of my generous supply of test procedures you are following but:
I do not change the default Web Browser before updating.
I merely check if Preferred Applications offers Firefox-ESR as an option in the dropdown. I do not actually set Firefox-ESR as the default.
This is perhaps not clear from my earliest set of procedures, for which I apologise.Before updating antix23-desktop-files, a freshly-installed Firefox-ESR appears as a choice in Preferred Applications.
After installing/updating* antix23-desktop-files, the already-installed Firefox-ESR no longer appears as a choiceIn the original ISO, it seems antix23-desktop-files is at version 23.2-8. A repo update shows that a 23.2-9 is available.
Given your antipathy to qemu (good to know) I have amended my minimal test procedure:
1) Live boot antiX-23.2_x64-base.iso (I am using usb)
2) Use Installer to install firefox-esr (Looks like this does an apt update)
3) Check Preferred Applications makes Firefox-ESR available in the Web Browser dropdown – YES
(don’t actually change anything – leave it at Seamonkey)4) Use Installer to upgrade antix23-desktop-files (Because Installer does an apt update, this will upgrade from 23.2-8 to 23.2-9)
5) Check Preferred Applications makes Firefox-ESR available in the Web Browser dropdown – NO, Firefox-ESR is not visible
* It seems Installer may offer an Install button or an Upgrade button, or a greyed-out non-button, as it deems fit.
Actually, I have an process to show the less-than-ideal effect of current antix23-desktop-files.
1) Live boot antiX-23.2_x64-base.iso (I am using usb)
2) Use Preferred Applications to check which options are available for Web Browser – only Seamonkey is visible.
3) Use Installer to Uninstall antix23-desktop-files 23.2-8 (This seems to trigger an apt update)
4) Use Preferred Applications to check which options are available for Web Browser:
Seamonkey, antix-viewer and Links 2 !!5) Use Installer to install antix23-desktop-files (should be at 23.2-9 now)
6) Use Preferred Applications to check which options are available for Web Browser – only Seamonkey is visible.
June 12, 2025 at 12:53 am #179166Robin
MemberSome third party programs irregularly installing themselves into /opt instead of /usr need a manual fix for running properly. This involves most likely adding some paths to the environment, and also creating symlinks from the misplaced .desktop files to the /usr/share/applications folder. In case you are on full instead of base, it would be preferable to copy the .desktop file over instead of symlinking, because the antix23-desktop-files package sets its own symlinks there when installed, and will ignore files which are already symlinked. If there is an antiX specific .desktop file version available, you’ll find it in /usr/local/lib/antiX/antix23-desktop-files/reservoir/ and in this case you should actually copy the .desktop file from /opt over to /usr/share/applications and run the refresh menu call from antiX main menu afterwards to have the antiX specific replacement active for the very program.
This goes for the main menu entry. Not completely convinced whether it will also be applicable for a taskbar entry. I guess @PPC would know.
But in base there is no antix23-desktop-files package installed by default, if I’m not mistaken (I’m always running full only).
Does this mean I must hunt down a Firefox .desktop file? I know the button said “Free Choice” but this is a scary amount of freedom.
Yes, precisely that is the meaning of free choice. You have to select the .desktop file containing the startup call manually from wherever it lives on your system. Nothing scary at all. (Btw: Best guess is /usr/share/applications )
From my occasional conversation with other computer users, many don’t seem to grasp the basics of files and folders.
Precisely for these people we have the preselected choices in the pulldowns. The free choice is meant for people who know to handle freedom: antiX is designed to serve both user target scopes, the ones who just want to click something from a simplified preselection, and the ones who want to have easy access to full control and know what they are doing.
Windows is like a submarine. Open a window and serious problems will start.
June 12, 2025 at 1:27 am #179168Robin
MemberWhen installing antix23-desktop-files package on antiX 23 base, make sure to have fully upgraded your system, in particular the desktop-menu-antix package. There was a bug in the script, causing new installed programs to be not provided with the antiX specific desktop files by the desktop-menu hook, instead the script aborted halfways done. This was fixed not long ago, see http://www.antixforum.com/forums/topic/applications-submenu-translation-lost-after-antix-23-update/ for details.
Seems the fix didn’t make it still into the apt-repos, while it is already four months merged at gitlab (I get currently still 0.2.3 from apt which is internal version 0.30 of the desktop-menu script. So please download manually the latest version from https://gitlab.com/antiX-Linux/desktop-menu-antix/-/blob/master/bin/desktop-menu and copy the file into /usr/local/bin. It should show the internal version 0.31 in its header lines. See whether this helps fixing your issue.
Windows is like a submarine. Open a window and serious problems will start.
June 12, 2025 at 1:51 am #179171BobC
ModeratorSorry if my post was being typed while Robin posted his last post above.
In many systems the “Free Choice” might alternately have been called “Advanced” because it allows the advanced users the “full control” as Robin called it to decide what they want regardless of what the default auto-select routine would have offered for that application’s selection options. If I recall, it works like the original application where it assumes the user knows which application they want to use that’s able to do the processing for that type of file or task.
Let me know if the fixed version works correctly (using your test procedure), and I can retest it on my base test machine as well if there is any question.
Here is the link to SEARCH THE FORUM >> http://www.antixforum.com/search-forums
June 13, 2025 at 3:21 pm #179285BobC
ModeratorWhen installing antix23-desktop-files package on antiX 23 base, make sure to have fully upgraded your system, in particular the desktop-menu-antix package. There was a bug in the script, causing new installed programs to be not provided with the antiX specific desktop files by the desktop-menu hook, instead the script aborted halfways done. This was fixed not long ago, see http://www.antixforum.com/forums/topic/applications-submenu-translation-lost-after-antix-23-update/ for details.
Seems the fix didn’t make it still into the apt-repos, while it is already four months merged at gitlab (I get currently still 0.2.3 from apt which is internal version 0.30 of the desktop-menu script. So please download manually the latest version from https://gitlab.com/antiX-Linux/desktop-menu-antix/-/blob/master/bin/desktop-menu and copy the file into /usr/local/bin. It should show the internal version 0.31 in its header lines. See whether this helps fixing your issue.
It looks like Robin was right. In the desktop-menu-antix package in base, the current version as of a moments ago was 0.30, not 0.31. I’m not sure what the changes were but will see if I can find out hopefully by Monday or Tuesday. As he suggested, it should be tested.
I also looked at desktop-defaults-set and I looked at it enough to see that it will not be easy to change, and Robin said he’s too busy working to work on it. I’m not sure if I’d be able to fix it, myself.
Here is the link to SEARCH THE FORUM >> http://www.antixforum.com/search-forums
June 13, 2025 at 7:01 pm #179304
DaveForum AdminI also looked at desktop-defaults-set and I looked at it enough to see that it will not be easy to change, and Robin said he’s too busy working to work on it. I’m not sure if I’d be able to fix it, myself.
Maybe not all the changes. But the main problem of apps not showing when antix23-desktop-files can be resolved easily enough. From my earlier post.
The problem within desktop-defaults-set is the lines that grep /usr/share/applications/ and ~/.local/share/applications to build a list of applications. It is using -r instead of -R. Therefor symlinks are not followed and the programs are not shown.
I am not sure on what lines they are but a search for grep should find it.
Computers are like air conditioners. They work fine until you start opening Windows. ~Author Unknown
June 14, 2025 at 1:25 pm #179336entropyagent
MemberI’m not sure what, if anything, is being asked of me?
But in base there is no antix23-desktop-files package installed by default, if I’m not mistaken (I’m always running full only).
I assert that antix23-desktop-files (v 23.2-8) is present in my freshly booted antiX-23.2_x64-base.iso.
Without installing anything, or even upgrading:
When antix23-desktop-files is present, Preferred Applications only offers Seamonkey as Web Browser.
When antix23-desktop-files is removed, Preferred Applications offers Seamonkey, antix-viewer and Links 2 as Web Browsers
When antix23-desktop-files is re-installed (to v23.2-9), Preferred Applications only offers Seamonkey as Web Browser.– The problem within desktop-defaults-set is the lines that grep /usr/share/applications/ and ~/.local/share/applications to build a list of applications. It is using -r instead of -R.
I assert that when I made this change to /usr/local/bin/desktop-defaults-set, Preferred Applications offered Seamonkey, antix-viewer and Links 2 as Web Browsers.
(Basically, in 2 grep statements, I changed a lowercase r to an uppercase R)
Going back to the original problem, I installed firefox-esr, and Preferred Applications offered Seamonkey, antix-viewer, Firefox ESR and Links 2 as Web Browsers.
I was able to use Preferred Applications to set any one of these to be started by the toolbar Web Browser icon.
The presence of antix23-desktop-files (v23.2-9) did not seem to do any harm any more.I don’t know if this change unleashed any horrifying breakages elsewhere, but it seems to fix the original reported fault.
June 14, 2025 at 5:19 pm #179350Robin
MemberI’m not sure what, if anything, is being asked of me?
Well, you have helped to squash another bug. Many many thanks for reporting it and the detailed testing of the fix @Dave had proposed! You have done great, no question. I don’t expect any further harm from the change of -r to -R in the script. This simply modifies the behaviour of grep slightly to follow symlinks instead of ignoring them.
@anticapitalista Could you apply the needed changes directly to have them appear in the apt-repos soon, or should somebody create and send a merge request for this?
Windows is like a submarine. Open a window and serious problems will start.
June 15, 2025 at 4:51 am #179360
anticapitalistaForum Admin@anticapitalista Could you apply the needed changes directly to have them appear in the apt-repos soon, or should somebody create and send a merge request for this?
A merge request would be best
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
June 15, 2025 at 5:49 am #179361entropyagent
MemberYou are too kind.
Is is my honour to serve.
June 15, 2025 at 9:42 am #179366Robin
Member@anticapitalista Merge request !9 sent. Tested successfully on antiX 23.1 runit full 64 bit fully apt-upgraded.
Windows is like a submarine. Open a window and serious problems will start.
June 15, 2025 at 9:45 am #179367Robin
MemberThe problem within desktop-defaults-set is the lines that grep /usr/share/applications/ and ~/.local/share/applications to build a list of applications. It is using -r instead of -R. Therefor symlinks are not followed and the programs are not shown.
Hi @Dave. Many many thanks for solving this riddle! I was not aware that desktop-defaults-set ignores symlinks, was caught under the false recollection that they are processed already.
My guess is that the postinst script of the antix23-desktop-files package would also need to be added as a apt hook so that it will update the symlinks it makes after most package management processes. I am not sure how this was meant to be updated after initial installation of the antix23-desktop-files package.
This is integrated into recent desktop-menu, which always is called by an apt-hook anyway, and covers additionally the case when a user installs something out of tree and runs refresh menu from the antiX main menu manually. Please diff-check latest desktop-menu (Ver 0.31) against your current draft you are working on to understand what I have added for antix23-desktop-files compatibility. If questions left, just ask.
Windows is like a submarine. Open a window and serious problems will start.
June 15, 2025 at 10:35 am #179373
anticapitalistaForum AdminI merged both commits – one from Dave and one from Robin
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
-
AuthorPosts
- You must be logged in to reply to this topic.