Annoyances - Executing browser from URL links within

Hello everybody,
I have a few NixOS annoyances, and one of them is not being able to open shared URLs to my prefered browser, Chrome!

For instance, if someone shares a reel with me via caprine, and I click the link, I get a "Open using Chrome" popup box and no browsers opens up unless I copy the link, paste it into the desired browser. That doesn’t seem productive to me; it is hindering.

Any suggestions for a workaround? Should I add a service or a specific condition to the configuration file?

Thank you in advance,

Did you set Chrome as the default browser in your desktop settings?

I definately checked all of that first:

What’s Caprine, how did you install it? If it’s an AppImage or something like that, the xdg integration may not work well maybe :thinking:

Thank you for responding.

After numerous tries at hacking and modifying the./../caprine file and other things, I decided to uninstall the software and go with Franz, and it is now doing what it is supposed to do.

Strangely, I didn’t have any of these problems in other distros?

How did you install Caprine? I see there is a caprine-bin which is a wrapper around the AppImage.

There is certainly an issue with xdg-open and AppImages :woman_shrugging: this would be worth reporting in nixpkgs if you want to see it fixed.

1 Like

Yes added as normal into environment.systemPackages = with pkgs; [..] and also added the following


Franz and Rambox are working fine but not as configurable as caprine.

I’m not sure to understand, but maybe Caprine isn’t using xdg-utils in its closure

nixpkgs/pkgs/applications/networking/instant-messengers/caprine-bin/build-from-appimage.nix at aaef163eac75c2ac7f882c1fae4e0c08aa18d186 · NixOS/nixpkgs · GitHub is using extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs;

nixpkgs/pkgs/build-support/appimage/default.nix at aaef163eac75c2ac7f882c1fae4e0c08aa18d186 · NixOS/nixpkgs · GitHub but xdg-utils is defined in extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.targetPkgs pkgs;

but I’m not sure because of nixpkgs/pkgs/build-support/appimage/default.nix at aaef163eac75c2ac7f882c1fae4e0c08aa18d186 · NixOS/nixpkgs · GitHub , I guess the two sets are merged :thinking:

I think something is wrong, if I install caprine-bin, I don’t have xdg-utils pulled with it.

yes I can see the issue. I dont experience this issue on fedora or mint. but there again ive installed caprine via flatpak?

flatpak install flathub com.sindresorhus.Caprine SOLVED

The Flatpak version resolves the issue. franz and rambox are being uninstalled. In the flatpak version of caprine, I’m also able to select a dark theme.

I’m not sure if having all of the xdg preloaded contributed to the flatpak version of caprine to function successfully on NixOS.

1 Like

AppImage integration is terrible in general… :frowning: Good to read it’s working well with flatpak, which is a very good technology IMO.

1 Like