mirror of
https://github.com/Ld-Hagen/fix-opera-linux-ffmpeg-widevine.git
synced 2025-12-29 03:23:00 +03:00
Autodetected Opera path instead of hardcoded. Architecture check
This commit is contained in:
@@ -6,8 +6,13 @@ if [[ $(whoami) != "root" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $(uname -m) != "x86_64" ]; then
|
||||
printf 'This script is intended for 64-bit systems\n'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
readonly TEMP_FOLDER='/tmp'
|
||||
readonly OPERA_FOLDER='/usr/lib/x86_64-linux-gnu/opera'
|
||||
readonly OPERA_FOLDER=`dirname "$(readlink -f $(which opera))"`
|
||||
readonly FILE_NAME='libffmpeg.so'
|
||||
readonly ZIP_FILE='.zip'
|
||||
readonly TEMP_FILE="$TEMP_FOLDER/$FILE_NAME"
|
||||
|
||||
Reference in New Issue
Block a user