-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove features like a true gnome dev
First attempt to simplify the code: - build the search popover with an UI file instead of a python method - remove the "presentation" window
- Loading branch information
Showing
20 changed files
with
722 additions
and
831 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,29 @@ | ||
#!/bin/bash | ||
|
||
if (( $EUID == 0 )); then | ||
install_dir="/usr/lib/x86_64-linux-gnu/gedit/plugins" | ||
schemas_dir="/usr/share/glib-2.0/schemas" | ||
else | ||
install_dir="$HOME/.local/share/gedit/plugins" | ||
schemas_dir="$HOME/.local/share/glib-2.0/schemas" | ||
fi | ||
|
||
if [ ! -d "/usr/lib/x86_64-linux-gnu/gedit/plugins" ]; then | ||
mkdir /usr/lib/x86_64-linux-gnu/gedit/plugins | ||
fi | ||
echo "Checking if adequate folders exist…" | ||
|
||
echo "Installing setting schemas in /usr/share/glib-2.0/schemas" | ||
|
||
cp org.gnome.gedit.plugins.markdown_preview.gschema.xml /usr/share/glib-2.0/schemas | ||
glib-compile-schemas /usr/share/glib-2.0/schemas | ||
mkdir -p $install_dir | ||
mkdir -p $schemas_dir | ||
|
||
echo "Installing plugin files in /usr/lib/x86_64-linux-gnu/gedit/plugins/" | ||
|
||
cp markdown_preview.plugin /usr/lib/x86_64-linux-gnu/gedit/plugins/markdown_preview.plugin | ||
cp -r markdown_preview /usr/lib/x86_64-linux-gnu/gedit/plugins/ | ||
echo "Installing setting schemas in $schemas_dir" | ||
|
||
else | ||
cp org.gnome.gedit.plugins.markdown_preview.gschema.xml $schemas_dir | ||
glib-compile-schemas $schemas_dir | ||
|
||
echo "Checking if adequate folders exist..." | ||
|
||
if [ ! -d "$HOME/.local/share/glib-2.0" ]; then | ||
mkdir ~/.local/share/glib-2.0 | ||
fi | ||
if [ ! -d "$HOME/.local/share/glib-2.0/schemas" ]; then | ||
mkdir ~/.local/share/glib-2.0/schemas | ||
fi | ||
if [ ! -d "$HOME/.local/share/gedit" ]; then | ||
mkdir ~/.local/share/gedit | ||
fi | ||
if [ ! -d "$HOME/.local/share/gedit/plugins" ]; then | ||
mkdir ~/.local/share/gedit/plugins | ||
fi | ||
|
||
echo "Installing setting schemas in ~/.local/share/glib-2.0/schemas" | ||
|
||
cp org.gnome.gedit.plugins.markdown_preview.gschema.xml ~/.local/share/glib-2.0/schemas | ||
glib-compile-schemas ~/.local/share/glib-2.0/schemas | ||
|
||
echo "Installing plugin files in ~/.local/share/gedit/plugins/" | ||
|
||
cp markdown_preview.plugin ~/.local/share/gedit/plugins/markdown_preview.plugin | ||
cp -r markdown_preview ~/.local/share/gedit/plugins/ | ||
|
||
fi | ||
echo "Installing plugin files in $install_dir" | ||
|
||
cp markdown_preview.plugin $install_dir/markdown_preview.plugin | ||
cp -r markdown_preview $install_dir/ | ||
|
||
echo "Done." | ||
|
||
exit | ||
exit 0 | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file modified
0
markdown_preview/locale/fr/LC_MESSAGES/gedit-plugin-markdown-preview.mo
100644 → 100755
Empty file.
Empty file modified
0
markdown_preview/locale/fr/LC_MESSAGES/gedit-plugin-markdown-preview.po
100644 → 100755
Empty file.
Empty file.
Oops, something went wrong.