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