Skip to content

Commit

Permalink
Fix bug #60244 (#788)
Browse files Browse the repository at this point in the history
* Fix bug #60244

* Small changes
  • Loading branch information
romandemidov committed Feb 28, 2023
1 parent 4746056 commit d792f5b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 5 additions & 2 deletions win-linux/package/linux/common/usr/bin/desktopeditors.m4
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,12 @@ check_templates() {
check_templates "$@"

DIR=/opt/M4_DESKTOPEDITORS_PREFIX
if [ ! -z "$LD_LIBRARY_PATH" ]; then
LDLPATH=:$LD_LIBRARY_PATH
fi
ifelse(M4_COMPANY_NAME, ONLYOFFICE,
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH,
export LD_LIBRARY_PATH=$DIR$LDLPATH,
DIR_MV=/opt/M4_MEDIAVIEWER_PREFIX
export LD_LIBRARY_PATH=$DIR:$DIR/converter:$DIR_MV:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$DIR:$DIR/converter:$DIR_MV$LDLPATH
export VLC_PLUGIN_PATH=$DIR_MV/plugins)
exec $DIR/DesktopEditors "$@"
5 changes: 4 additions & 1 deletion win-linux/package/linux/common/usr/bin/imageviewer.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

DIR=/opt/M4_MEDIAVIEWER_PREFIX
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
if [ ! -z "$LD_LIBRARY_PATH" ]; then
LDLPATH=:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH=$DIR$LDLPATH
exec $DIR/ImageViewer "$@"
5 changes: 4 additions & 1 deletion win-linux/package/linux/common/usr/bin/videoplayer.m4
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/sh

DIR=/opt/M4_MEDIAVIEWER_PREFIX
export LD_LIBRARY_PATH=$DIR:$LD_LIBRARY_PATH
if [ ! -z "$LD_LIBRARY_PATH" ]; then
LDLPATH=:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH=$DIR$LDLPATH
exec $DIR/VideoPlayer "$@"

0 comments on commit d792f5b

Please sign in to comment.