summaryrefslogtreecommitdiff
path: root/editors/linux-r7-office/files/patch-usr_bin_r7-office-desktopeditors
blob: 29b58cf7af38fcaee7052da4f0d6e61cda73f74a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- 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 "$@"