maintainer-feedback requested: [Bug 262496] devel/xdg-utils: xdg-open opens *.cpp and *.h files with RStudio

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 12 Mar 2022 08:10:20 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 262496: devel/xdg-utils: xdg-open opens *.cpp and *.h files with RStudio
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262496



--- Description ---
I have RStudio installed, and 'xdg-open x.cpp' opens x.cpp with RStudio despite
its MIME file /usr/local/share/mime/packages/rstudio.xml doesn't say that
RStudio can open *.cpp files.

Sometimes *.r files are opened with vscode when it is installed in addition to
RStudio, even though vscode doesn't install any MIME files.

Something is wrong with xdg-open.