Skip to content

Commit

Permalink
plex-desktop: update sqlite write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
detroyejr committed Dec 18, 2024
1 parent f759333 commit e1a323a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/by-name/pl/plex-desktop/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,17 @@ buildFHSEnv {
runScript = writeShellScript "plex-desktop.sh" ''
# Widevine won't download unless this directory exists.
mkdir -p $HOME/.cache/plex/
# Copy the sqlite plugin database on first run.
PLEX_DB="$HOME/.local/share/plex/Plex Media Server/Plug-in Support/Databases"
if [[ ! -d "$PLEX_DB" ]]; then
mkdir -p "$PLEX_DB"
cp "${plex-desktop}/resources/com.plexapp.plugins.library.db" "$PLEX_DB"
fi
# db files should have write access.
chmod --recursive 750 "$PLEX_DB"
PLEX_USR_PATH=${lib.makeSearchPath "usr/lib/x86_64-linux-gnu" [ plex-desktop ]}
set -o allexport
Expand Down

0 comments on commit e1a323a

Please sign in to comment.