From 4961f53c26707d620750907ecd6074973fe6fc98 Mon Sep 17 00:00:00 2001 From: crschnick Date: Sat, 12 Aug 2023 10:30:30 +0000 Subject: [PATCH] Add support for gnome text editor --- app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java | 4 +++- .../io/xpipe/app/resources/lang/translations_en.properties | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java b/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java index e7cbe65e..8553f7cb 100644 --- a/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java +++ b/app/src/main/java/io/xpipe/app/prefs/ExternalEditorType.java @@ -62,6 +62,8 @@ public interface ExternalEditorType extends PrefsChoiceValue { } }; + LinuxPathType GNOME = new LinuxPathType("app.gnomeTextEditor", "gnome-text-editor"); + LinuxPathType KATE = new LinuxPathType("app.kate", "kate"); LinuxPathType GEDIT = new LinuxPathType("app.gedit", "gedit"); @@ -187,7 +189,7 @@ public interface ExternalEditorType extends PrefsChoiceValue { } List WINDOWS_EDITORS = List.of(VSCODE_WINDOWS, NOTEPADPLUSPLUS_WINDOWS, NOTEPAD); - List LINUX_EDITORS = List.of(VSCODE_LINUX, KATE, GEDIT, PLUMA, LEAFPAD, MOUSEPAD); + List LINUX_EDITORS = List.of(VSCODE_LINUX, KATE, GEDIT, PLUMA, LEAFPAD, MOUSEPAD, GNOME); List MACOS_EDITORS = List.of(BBEDIT, VSCODE_MACOS, SUBLIME_MACOS, TEXT_EDIT); @SuppressWarnings("TrivialFunctionalExpressionUsage") diff --git a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties index c974304d..dbb517b6 100644 --- a/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties +++ b/app/src/main/resources/io/xpipe/app/resources/lang/translations_en.properties @@ -153,6 +153,7 @@ addMore=Add more vscode=Visual Studio Code kate=Kate gedit=GEdit +gnomeTextEditor=Gnome Text Editor leafpad=Leafpad mousepad=Mousepad pluma=Pluma