diff --git a/README.md b/README.md index c69abcb..f0a51f9 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,7 @@ MakeMKV -
This is the snap for MakeMKV, "Backup your Bluray and DVD discs". It works on Ubuntu, Fedora, Debian, and other major Linux -distributions.
+This is the snap for MakeMKV, a tool for backing up Blu-ray and DVD discs on Linux. It works on Ubuntu, Fedora, Debian, and other major Linux distributions.
[](https://snapcraft.io/makemkv) [](https://snapcraft.io/makemkv) diff --git a/scripts/makemkv-launch b/scripts/makemkv-launch index 43c69d4..fb38916 100755 --- a/scripts/makemkv-launch +++ b/scripts/makemkv-launch @@ -9,7 +9,7 @@ if [ ! -f $SNAP_USER_DATA/.MakeMKV/settings.conf ]; then app_DestinationDir = "$SNAP_REAL_HOME" app_DestinationType = "2" -app_Java = "/snap/makemkv/current/usr/bin/java" +app_Java = "$SNAP/usr/bin/java" app_Key = "" app_PreferredLanguage = "" dvd_MinimumTitleLength = "300" @@ -21,8 +21,8 @@ else sed -i -E 's|(app_DestinationDir = )""|\1"'"$SNAP_REAL_HOME"'"|' $SNAP_USER_DATA/.MakeMKV/settings.conf fi if grep -q 'app_Java = ""' $SNAP_USER_DATA/.MakeMKV/settings.conf; then - sed -i -E 's|(app_Java = )""|\1"/snap/makemkv/current/usr/bin/java"|' $SNAP_USER_DATA/.MakeMKV/settings.conf + sed -i -E "s|(app_Java = )\"\"|\\1\"$SNAP/usr/bin/java\"|" "$SNAP_USER_DATA/.MakeMKV/settings.conf" fi fi -exec "$@" \ No newline at end of file +exec "$@"