ports/editors/linux-r7-office/files/patch-usr_bin_r7-office-desktopeditors
Dima Panov 49f6973fc6 editors/linux-r7-office: Update to 2024.1.1
Sponsored by:	Serenity Cybersecurity, LLC
2024-05-12 13:01:20 +03:00

28 lines
822 B
Text

--- usr/bin/r7-office-desktopeditors.orig 2023-06-30 12:57:17 UTC
+++ usr/bin/r7-office-desktopeditors
@@ -72,7 +72,7 @@ check_templates() {
return 0
fi
- SOURCE_DOC_DIR="/opt/r7-office/desktopeditors/converter/empty"
+ SOURCE_DOC_DIR="%%LOCALBASE%%/share/r7-office/desktopeditors/converter/empty"
set_names_ru
@@ -106,6 +106,14 @@ check_templates() {
check_templates "$@"
-DIR=/opt/r7-office/desktopeditors
-DIR_MV=/opt/r7-office/mediaviewer
+DIR=%%LOCALBASE%%/share/r7-office/desktopeditors
+DIR_MV=%%LOCALBASE%%/share/r7-office/mediaviewer
+
+export LIBGL_DRI3_DISABLE=1
+export LANG=ru_RU.UTF-8
+export LC_CTYPE=ru_RU.UTF-8
+
+export LD_LIBRARY_PATH=$DIR:$DIR/R7Modules:$DIR/converter:$DIR_MV:$UDEV_PATH:$LD_LIBRARY_PATH
+export VLC_PLUGIN_PATH=$DIR_MV/plugins
+
exec $DIR/DesktopEditors "$@"