Tag: firefox

  • Firefox not opening mailto links in Flatpak Thunderbird

    Using Fedora Kinoite Thunderbird comes in a Flatpak. This caused me issues with mailto links in Firefox not opening Thunderbird’s new email window.

    Usually just setting Thunderbird as the default email client inside Thunderbird’s settings or KDE’s default applications would have worked. Even selecting Thunderbird inside the Firefox file handler applications settings would have done the job. However mailto links did nothing but open up the application selector in Firefox which did not work.

    The first two places were already set correctly (in Thunderbird and KDE) so not much more to do there. As I cannot directly select Thunderbird’s binary since it is a Flatpak, I tried to get Firefox to open the Flatpak binary instead and somehow customise the command being run.

    There was just no way to customise the command through its interface, unless I fiddled with handlers.json directly in my Firefox profile directory. I tried a few combinations and no dice. I was also still reluctant to believe that all other users would go through this mess just to get mailto links working which is such a basic feature.

    The most annoying part was that XDG actually returned Thunderbird as the default handler for mailto links:

    $ xdg-mime query default x-scheme-handler/mailto
    org.mozilla.Thunderbird.desktop

    But checking my ~/.config/mimeapps.list file revealed that there was no mailto handler defined. Adding the corresponding entries finally fixed the issue:

    [Added Associations]
    x-scheme-handler/mailto=org.mozilla.Thunderbird.desktop;

    [Default Applications]
    x-scheme-handler/mailto=org.mozilla.Thunderbird.desktop;

    Glad that I got it working but still not satisfied that this was really the way to go, so I decided to start from scratch.

    I went back to KDE’s System Settings>Apps & Windows>Default Applications>Email client. Despite having Thunderbird already selected I went and selected Other… instead. Here I could select Thunderbird again but interestingly there were more options:

    You will notice in my screen-shot the check-box stating “Remember application association for all files of type “x-scheme-handler/mailto“. This check-box once checked actually updates the same ~/.config/mimeapps.list file with the previous entries I mentioned earlier.

    So apparently this is an option which is not enabled by default when just selecting Thunderbird in the default applications list. Why not having mailto links working by default in KDE is a conundrum.

    I am sure there are edge cases not wanting mailto links to open the default email client, but I would assume the vast majority of users expect this behaviour of the default email client. What is the point otherwise of selecting a default application?

  • “Unable to load stream. Please make sure port 7446 is open on your NVR.”

    In case you are seeing the error message “Unable to load stream. Please make sure port 7446 is open on your NVR.” when trying to watch the live camera stream on your Unifi Video NVR system from Ubiquiti, then the solution is rather simple.

    The error is caused by the self-issued certificate that comes by default with the Unifi NVR. As Mozilla Firefox has strict SSL (HTTPS) rules making sure that one does not connect to the wrong or fake website as could happen in e.g. a phishing attempt. I have not tried myself but from what I have read apparently Google Chrome does not enforce this in the same manner making the stream work out of the box in Chrome.

    The solution is to open the URL to the video stream directly in a separate tab or window so that you can accept the self-signed certificate for the session:

    https://NVR_IP_address:7446

    The page itself will return an error after the certificate is accepted but that is fine, it is simply to accept the certificate. After that simply reload the NVR interface and the HTTPS video stream will work fine

    Please note that if you are accessing the NVR from an external network you may have a firewall instance blocking the actual port. This instead would require port forwarding to be set up and that is a different story.

  • Running several Firefox versions simultaneously

    Ever been in the need of running more than one instance of Mozilla Firefox? Well, I have. Multiple times.

    I use Firefox for my browsing and development. Combining both in the same profile has been a pain many times especially when ones development is intensive leading to high memory and CPU consumption unfortunately ending with a browser crash.

    Some time ago I starting using Firefox Beta since it included the Sync feature built-in. At some point I wanted to revert back to the release version again as the add-ons needed to be ready for Beta as well and it could take the add-on authors some time to update leaving them disabled till then.

    The easiest thing is to run two or more versions simultaneously of Firefox which provides you with increased flexibility, especially if you do web development of any type.

    To proceed simply download another version of Firefox and install selecting the custom choice. Make sure you install it in a different path than your current Firefox installation.

    The key to get more than one instance of Firefox running is to use multiple profiles. To create an additional profile for your next version open the command prompt (if on Windows) and type the following:

    "C:\Program Files\Mozilla Firefox" -profilemanager -no-remote

    Obviously change the path to match your own system if needed.

     

     

    Now the profile manager should be open and you can simply create a new profile and call it something else like e.g. “BETA”. Then click “Exit” afterwards to quit the profile manager.

     

     

    Next you need to edit the launcher of your newest installation of Firefox, by right-clicking its icon in the Start menu and selecting Properties. At the first text box add the following to the path:

    -P yournewprofilename -no-remote

    So it looks something like this:

    "C:\Program Files\Mozilla Firefox Beta\firefox.exe" -P BETA -no-remote

     

    Save and launch your second instance of Firefox by clicking on the same icon. You should now see two different “Firefox.exe” processes in your task manager.

     

     

    In that same screen you were before you can also change the title and icon itself so that it is easier to distinguish which version is which.

     

  • Pidgin certificate prompt

    Today using the version of Pidgin that came with Fedora 10 I received the following certificate prompt:

    Accept certificate for ows.messenger.msn.com?
    The root certificate this one claims to be issued by is unknown to Pidgin.

    The majority of cases of unknown certificate issuers are due to the chain of trust breaking down. This break down in the certificate chain is mainly caused by the software in question not including the intermediate certificate authorities certificates. Without these intermediate certificates the software can not verify through the certificate hierarchy up till the root certificate and therefore prompts the user about what to do.

    The options I received in the Pidgin prompt were:

    View certificate
    Accept
    Reject

    Upon selecting “View certificate” I am presented with the following details:

    Common name: ows.messenger.msn.com
    Fingerprint (SHA1): a9:9c:2d:ee:4a:d1:c8:7d:a7:c5:c3:05:32:98:5f:ee:57:87:73:8a
    Activation date: Tue Jan 29 14:37:21 2008
    Expiration date: Wed Jan 28 14:37:21 2009

    So far everything looks as it is a bona fide certificate but to verify the identity completely I load the page https://ows.messenger.msn.com/ in Firefox. As expected no certificate warnings were received and I opened the certificate viewer to see its details and confirmed the data matches up with the data received in Pidgin:

    certificate
    Certificate Viewer

    I can safely trust this certificate as Firefox has verified through the certificate chain that all intermediate certificates are valid too:

    certificate_chain
    Certificate Chain

    This certificate is simply used by Microsoft for the Live Messenger offline messaging service. Although you normally would trust verified certificates it did happen in the past that certificates were incorrectly issued to the wrong people. So always be cautious!

  • AVG 8 LinkScanner crashes Firefox

    After upgrading to the latest version of the free anti virus application from AVG I encountered constant crashes of Firefox. It seems that AVG 8 includes a utility called LinkScanner which marks whether a website is supposedly a threat or safe upon using a search engine:

    AVG LinkScanner ThreatAVG LinkScanner No Threat
    I am not the biggest fan of these utilities as many false positives arise plus the user ends up losing his own
    criteria and relies solely on the utility’s advice instead of thinking and evaluating each site by himself. Nevertheless it may be suitable for complete beginners as a helping hand.

    Firefox did start to behave erratically after the AVG upgrade from version 7.5 to 8 so there was no real doubt about why it was happening, so I immediately disabled the LinkScanner component within the AVG user interface. This seemed to be the only part that could affect the browsers somehow:

    AVG LinkScanner disabled

    Firefox stopped crashing and all was fine again. There was just a little thing that kept nagging me. The little red exclamation mark by the clock in the traybar kept displaying now. It was not possible to know whether there was an update waiting or any other issue as the exclamation sign was on constantly. I ended up turning LinkScanner on again just to remove the exclamation.

    Back to Firefox crashing…!

    Until today when I again got so tired of the continuous crashes that I finally searched for the problem and located a very simple solution to it.

    Simply leave the LinkScanner component running so you do not get the annoying exclamation mark. Now launch Firefox and go to Tools > Add-ons and disable the AVG add-on. This would disable the AVG 8 LinkScanner component without interfering with anything else on your PC.