From 05909c5e78f64156efef9308491fd14c006b58b4 Mon Sep 17 00:00:00 2001 From: Maciej Ciemborowicz Date: Sun, 24 Dec 2023 10:47:08 +0100 Subject: [PATCH] Fix wrong dependency (daemon instead of python-daemon) and change of the lockfile name. --- README.md | 2 +- setup.py | 4 ++-- src/spotify_cmd_daemon/main.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a604ec7..1986d34 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 💚 spotify-cmd v0.1.2 +# 💚 spotify-cmd v0.1.3 `spotify-cmd` is a Spotify client that allows controlling the playback of **albums and playlists from a user's library** (based on names or Spotify URIs) and individual tracks (based solely on Spotify URIs). The application is intended for use with [spotifyd](https://github.com/Spotifyd/spotifyd), but it works with any Spotify-enabled device. diff --git a/setup.py b/setup.py index 1ccd119..c8b9809 100644 --- a/setup.py +++ b/setup.py @@ -6,13 +6,13 @@ setup( name="spotify-cmd", - version="0.1.2", + version="0.1.3", packages=find_packages(), install_requires=[ 'argparse==1.4.0', 'configparser==5.0.2', 'spotipy==2.23.0', - 'daemon==1.2' + 'python-daemon==3.0.1' ], entry_points={ 'console_scripts': [ diff --git a/src/spotify_cmd_daemon/main.py b/src/spotify_cmd_daemon/main.py index 30e3160..a5e93c6 100644 --- a/src/spotify_cmd_daemon/main.py +++ b/src/spotify_cmd_daemon/main.py @@ -23,9 +23,9 @@ def run_server(server): spotify = SpotifyController() server = SocketServer(spotify) -lock_file = "/tmp/myapp.lock" +lock_file = "/tmp/spotify-cmd-daemon.lock" if os.path.exists(lock_file): - print("Application already running.") + print(f"Daemon already running ({lock_file} exists).") sys.exit(1) else: with open(lock_file, 'w'): pass