Comments (8)
Just pushed 11b436d to branch systemd
.
Not sure if it changes anything for you, though. Want to give it a try?
When did this start to break? Did it work reliable before?
from mpd-notification.
Thank you but I still get Connection refused
after updated to 11b436d .
My workaround is create a script to delay 3 seconds, then run mpd-notification.
#!/bin/sh
sleep 3
/usr/bin/mpd-notification
After=mpd.service
...
ExecStart=/somewhere/to/the/script.sh
Of course it is a little ugly...
How about creating a loop to connect to the server every period time in mpd-notification.c?
from mpd-notification.
Forced sleep times and connecting in loop are really ugly workarounds. Usually systemd
should get this right, otherwise the software (mpd
in this case) is broken.
Let's try something different. Could you please edit /usr/lib/systemd/user/mpd.service
and add a line
Type=forking
and change the ExecStart=
line to
ExecStart=/usr/bin/mpd
The complete file should look something like this:
[Unit]
Description=Music Player Daemon
After=network.target sound.target
[Service]
Type=forking
ExecStart=/usr/bin/mpd
# allow MPD to use real-time priority 50
LimitRTPRIO=50
LimitRTTIME=infinity
[Install]
WantedBy=default.target
from mpd-notification.
Or you could try with
Type=notify
as committed upstream: systemd: set Type=notify
from mpd-notification.
Ah, this will not (yet) work... It needs another commit at compile time: Main: notify systemd when MPD is ready
from mpd-notification.
Ok, let's use a workaround until real fixes linked above make its way into a release.
Can you try branch systemd
with 67c75e3?
from mpd-notification.
Closed with 67c75e3.
from mpd-notification.
I reverted this in master, should just work with mpd
version 0.20 now. Can you give it a try?
from mpd-notification.
Related Issues (20)
- Error with iniparser libraries HOT 1
- Can't get cover art HOT 9
- Can't change image size. HOT 1
- TIMEOUT only works from command line HOT 5
- Incorrect artwork shown when pausing HOT 11
- Problem with make and iniparser HOT 3
- Please specify license clearer HOT 2
- Awesome HOT 1
- scale configuration has no impact HOT 2
- music-dir not required anymore HOT 7
- Is embedded coverart a possibility? HOT 1
- Can this work on a tty with gnome open (or not) on another tty? HOT 1
- starting playback HOT 11
- Notification history problem in KDE HOT 5
- Notifications don't show when songs are changed with MPRIS HOT 1
- Crash when no notification server is up twice (should autostart) HOT 2
- implicit declaration of function av_register_all on make HOT 1
- Show mode change notifications HOT 2
- Cover art not working HOT 5
- Change notification's text? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpd-notification.