I have been trying to perform File Association on Ubuntu 20.04 using WSL2.
I have my mime Type specification file at
/usr/share/mime/packages/application-x-demo.xml. This is the content ofapllication-x-demo.xml.I have my
.desktopfile at/usr/share/applications/StartupLinux.desktop. This is the content of myStartupLinux.desktop:[Desktop Entry] Encoding=UTF-8 Version=1.0 Type=Application Terminal=true MimeType=application/x-demo Name=StartupLinux Exec=/home/<user>/MyWorkspace/StartupLinux.shIf I run the command:
gio info myFile.axsd | grep "standard::content-type"... I get the that my extension is successfully registered with the mime. Command output:
standard::content-type: application/x-demoIf I run the command:
gio mime application/x-demo... I get that my application is the default application for the mime type. Command output:
The Problem: If I try to open my file using xdg-open, I'm getting a permission error:
/usr/bin/xdg-open: 800: : Permission denied
I have tried the these links, but did not find any working solution:

