Opening a web browser from Java apps in WSL

Linux CLI tools typically rely on xdg-open or fallback to $BROWSER environment variable to open the default browser, usually for OAuth authentication to authorise the CLI tool without using a permanent credential. Java apps behave differently by trying common browser executables in $PATH if the default browser could not be located. To launch a web browser from a Java app in WSL, simply add a symlink in “/usr/bin/“ that points to the browser executable in Windows, this way you don’t have to install a web browser in WSL.

read more

GnuPG 2.5 for Windows is now 64-bit only

After updating GnuPG to 2.5.16 using Chocolatey, I wasn’t able to sign commit in WSL with pinentry error. The “$HOME/.gnupg/gpg-agent.conf” was previously configured with pinentry-program "/mnt/c/Program Files (x86)/gnupg/bin/pinentry-basic.exe" which is now an invalid path. I updated it to:

pinentry-program "/mnt/c/Program Files/GnuPG/bin/pinentry-basic.exe"

read more

Importing FreeTube subscriptions to NewPipe/PipePipe

In FreeTube, navigate to Settings > Data > Export Subscriptions > Export YouTube (.csv). Transfer the csv file to your mobile device. In NewPipe/PipePipe, navigate to Subscriptions > upper-left triple-dot > Import from > YouTube > Import File > choose the csv file. The import will run in the background with notification. The app’s notification will clear once the import is complete.

Using vector tiles on Nextcloud Maps

Nextcloud Maps uses raster tiles by default, but it also supports vector tiles which looks nicer. Navigate to Nextcloud administration > Additional settings (<nextcloud-domain>/settings/admin/additional) > Maplibre settings. Set the style url as https://tiles.openfreemap.org/styles/liberty.

read more

Separate markdown headings into pages

Previously the Threat Hunting page contained all search queries in one page separated by headings. That approach was untidy especially when conducting a web search; where after being redirected to the threat hunting page, still had to navigate to the relevant heading to locate the relevant search query.

read more