From ce70d92c628285b3797c7573ddf56bbf699e2771 Mon Sep 17 00:00:00 2001 From: John Paul Wohlscheid Date: Wed, 21 Feb 2024 01:41:20 -0500 Subject: [PATCH] create t2 different scripts to work with either gtk3 or gtk4 --- gedit/{install.sh => install-gtk3.sh} | 0 gedit/install-gtk4.sh | 2 ++ gedit/readme | 11 ++++++++--- 3 files changed, 10 insertions(+), 3 deletions(-) rename gedit/{install.sh => install-gtk3.sh} (100%) mode change 100755 => 100644 create mode 100644 gedit/install-gtk4.sh diff --git a/gedit/install.sh b/gedit/install-gtk3.sh old mode 100755 new mode 100644 similarity index 100% rename from gedit/install.sh rename to gedit/install-gtk3.sh diff --git a/gedit/install-gtk4.sh b/gedit/install-gtk4.sh new file mode 100644 index 0000000..2a2bc35 --- /dev/null +++ b/gedit/install-gtk4.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +sudo cp ldpl.lang /usr/share/gtksourceview-4/language-specs/ diff --git a/gedit/readme b/gedit/readme index 13650ed..370cf4f 100644 --- a/gedit/readme +++ b/gedit/readme @@ -2,14 +2,19 @@ | LDPL Syntax Highlighting for Gedit / Pluma / Etc. | +---------------------------------------------------+ +This folder contains installation scripts for both GTK3 and GTK4. The install-gtk3.sh +script will work for editors that use GTK3 and install-gtk4.sh will for those that use +GTK4. + [Installing] To install LDPL syntax highlighting for the gedit / pluma / etc editors just -run the install.sh file found in the same folder as this README. +run the install-gtk*.sh file found in the same folder as this README. [Installing (by hand)] -1. Copy the file ldpl.lang to /usr/share/gtksourceview-3.0/language-specs/ +1. Copy the file ldpl.lang to /usr/share/gtksourceview-3.0/language-specs/ or + /usr/share/gtksourceview-4/language-specs/ based on your editor 2. Restart Gedit / Pluma / Etc. [Uninstalling] -Delete /usr/share/gtksourceview-3.0/language-specs/ldpl.lang +Delete /usr/share/gtksourceview-3.0/language-specs/ldpl.lang or /usr/share/gtksourceview-4/language-specs/ldpl.lang