nnn: fix mime type associations (#9038)

The upstream rdef has a `file_types` section which causes `nnn` to show up in
the Tracker "Open with..." menu even though it doesn't handle RefsReceived().
This commit is contained in:
augiedoggie
2023-07-15 21:26:28 -06:00
committed by GitHub
parent 55e563e1ef
commit c486463d14
2 changed files with 28 additions and 1 deletions

View File

@@ -14,9 +14,10 @@ Visit the Wiki for concepts, program usage, how-tos and troubleshooting."
HOMEPAGE="https://github.com/jarun/nnn"
COPYRIGHT="2016-2022 Arun Prakash Jana"
LICENSE="BSD (2-clause)"
REVISION="2"
REVISION="3"
SOURCE_URI="https://github.com/jarun/nnn/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="fadc15bd6d4400c06e5ccc47845b42e60774f368570e475bd882767ee18749aa"
PATCHES="nnn-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

View File

@@ -0,0 +1,26 @@
From d5e7953c35d895f2bdf29eca102bf40ef9685bfe Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Sat, 15 Jul 2023 21:12:07 -0600
Subject: disable file_types support in the rdef
NNN is a terminal application and doesn't handle Haiku style file references
diff --git a/misc/haiku/nnn.rdef b/misc/haiku/nnn.rdef
index 7e029fd..ce0b992 100644
--- a/misc/haiku/nnn.rdef
+++ b/misc/haiku/nnn.rdef
@@ -21,9 +21,11 @@ resource app_version {
resource app_flags B_MULTIPLE_LAUNCH | B_BACKGROUND_APP | B_ARGV_ONLY;
+/*
resource file_types message {
"types" = "application/x-vnd.Be-directory"
};
+*/
resource vector_icon {
$"6E6369660805FF032E343602011202B8E0C339BAC3B985CFB8B7E549F5FF4994"
--
2.39.2