Change:
Installing is not placing the in the correct directory for it to be found by xdg-mime. Install wslu using Nix. Two things happen: should set wslview as the default hander (you can check if it worked by running ) shows at . This is probably causing 1. to not work. N/A I a workaround in the mean time: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
<ins> diff --git a/src/wslu-header b/src/wslu-header index 5f33925..159c6af 100644 --- a/src/wslu-header +++ b/src/wslu-header @@ -169,11 +169,17 @@ if [ -f "$HOME/.config/wslu/conf" ]; then debug_echo "$HOME/.config/wslu/conf found, sourcing" source "$HOME/.config/wslu/conf" fi + if [ -f "$HOME/.wslurc" ]; then debug_echo "$HOME/.wslurc found, sourcing" source "$HOME/.wslurc" fi +if [ -f "@out@/share/wslu/conf" ]; then +	debug_echo "@out@/share/wslu/conf found, sourcing" +	source "@out@/share/wslu/conf" +fi + # functions function help { </ins>

<ins> From f63028c5712a89cb310165cde9701538fa85ce46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A9clairevoyant?= <848000+eclairevoyant@users.noreply.github.com> Date: Wed, 6 Mar 2024 06:09:44 -0500 Subject: [PATCH] fix desktop item --- Makefile                | 1 - src/etc/wslview.desktop | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2399009..e823882 100644 --- a/Makefile +++ b/Makefile @@ -59,7 +59,6 @@ res_install: install -Dm 644 src/etc/*.ps1 -t $(DESTDIR)$(PREFIX)/share/wslu install -Dm 644 src/etc/*.ico -t $(DESTDIR)$(PREFIX)/share/wslu install -Dm 755 src/etc/*.sh -t $(DESTDIR)$(PREFIX)/share/wslu -	install -Dm 644 src/etc/*.desktop $(DESTDIR)$(PREFIX)/share/wslu install -Dm 644 src/etc/conf $(DESTDIR)$(PREFIX)/share/wslu conf_install: diff --git a/src/etc/wslview.desktop b/src/etc/wslview.desktop index ebb84b6..235a365 100644 --- a/src/etc/wslview.desktop +++ b/src/etc/wslview.desktop @@ -2,7 +2,7 @@ Name=WSLView Comment=Open files and addresses in Windows Icon=windows -Exec=/usr/bin/wslview %U +Exec=wslview %U Terminal=false Type=Application Categories=Utility; -- 2.43.1 </ins>

<ins> { lib , stdenv , fetchFromGitHub , copyDesktopItems }: stdenv.mkDerivation rec { pname = "wslu"; version = "4.1.1"; src = fetchFromGitHub { owner = "wslutilities"; repo = "wslu"; rev = "v${version}"; hash = "sha256-yhugh836BoSISbTu19ubLOrz5X31Opu5QtCR0DXrbWc="; }; nativeBuildInputs = [ copyDesktopItems ]; patches = [ ./fallback-conf-nix-store.diff ./fix-desktop-item.patch ]; postPatch = '' substituteInPlace src/wslu-header  --subst-var out ''; makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; desktopItems = [ "src/etc/wslview.desktop" ]; meta = with lib; { description = "A collection of utilities for Windows Subsystem for Linux"; homepage = "https://github.com/wslutilities/wslu"; changelog = "https://github.com/wslutilities/wslu/releases/tag/v${version}"; license = licenses.gpl3Plus; maintainers = with maintainers; [ jamiemagee ]; platforms = platforms.linux; }; } </ins>

<del> { lib , stdenv , fetchFromGitHub }: stdenv.mkDerivation rec { pname = "wslu"; version = "4.1.1"; src = fetchFromGitHub { owner = "wslutilities"; repo = pname; rev = "v${version}"; hash = "sha256-yhugh836BoSISbTu19ubLOrz5X31Opu5QtCR0DXrbWc="; }; patches = [ ./fallback-conf-nix-store.diff ]; postPatch = '' substituteInPlace src/wslu-header  --subst-var out ''; makeFlags = [ "DESTDIR=$(out)" "PREFIX=" ]; meta = with lib; { description = "A collection of utilities for Windows Subsystem for Linux"; homepage = "https://github.com/wslutilities/wslu"; changelog = "https://github.com/wslutilities/wslu/releases/tag/v${version}"; license = licenses.gpl3Plus; maintainers = with maintainers; [ jamiemagee ]; platforms = platforms.linux; }; } </del>

<del> diff --git a/src/wslu-header b/src/wslu-header index 5f33925..159c6af 100644 --- a/src/wslu-header +++ b/src/wslu-header @@ -169,11 +169,17 @@ if [ -f "$HOME/.config/wslu/conf" ]; then debug_echo "$HOME/.config/wslu/conf found, sourcing" source "$HOME/.config/wslu/conf" fi + if [ -f "$HOME/.wslurc" ]; then debug_echo "$HOME/.wslurc found, sourcing" source "$HOME/.wslurc" fi +if [ -f "@out@/share/wslu/conf" ]; then +	debug_echo "@out@/share/wslu/conf found, sourcing" +	source "@out@/share/wslu/conf" +fi + # functions function help { </del>

woeusb-ng = callPackage ../tools/misc/woeusb-ng { }; <del> wslu = callPackage ../tools/system/wslu { }; </del> chase = callPackage ../tools/system/chase { }; wimlib = callPackage ../tools/archivers/wimlib { };