- commit
- 72a4edbc65681b812816f2257383305249f02735
- parent
- 427d698da984a660850d3fbdf9d34fbc10fe05c8
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-01-04 14:40
use XDG_RUNTIME_DIR for mpv socket
Diffstat
| M | cplay.py | 4 | +++- |
1 files changed, 3 insertions, 1 deletions
diff --git a/cplay.py b/cplay.py
@@ -148,7 +148,9 @@ class Player: 148 148 self._playing = 0 149 149 self._buffer = b'' 150 150151 -1 self.socket_path = '/tmp/mpv-cplay-%i.sock' % os.getpid()-1 151 self.socket_path = '%s/mpv-cplay-%i.sock' % ( -1 152 os.getenv('XDG_RUNTIME_DIR', '/tmp'), os.getpid() -1 153 ) 152 154 self._proc = subprocess.Popen( 153 155 [ 154 156 'mpv',