MPD icon indicating copy to clipboard operation
MPD copied to clipboard

cannot open mpd.conf on android after 0.23.8 update

Open lschierer opened this issue 2 years ago • 4 comments

Bug report

Describe the bug

since the update to mpd on android to 0.23.8 when I go to start mpd, it says

exception: Failed to open '/storage/emulated/0/mpd.conf': Permission denied

Expected Behavior

mpd continues to start as normal

Actual Behavior

prints an error message in the console log and fails to allow connections

Version

0.23.8 per google play store.

Configuration

it cannot open the configuration file, so I doubt this is relevant.

lschierer avatar Jul 15 '22 15:07 lschierer

Looking in the app permissions in settings, MPD now says it has permissions only for audio files, with no option to grant it permission to all files. I suspect that this is why it cannot open the mpd.conf file.

lschierer avatar Jul 15 '22 15:07 lschierer

See https://github.com/MusicPlayerDaemon/MPD/issues/1061#issuecomment-1185664551= It's no longer possible to grant an app permission to all files.

MaxKellermann avatar Jul 15 '22 16:07 MaxKellermann

I've marked this as bug, not because it's a MPD bug (it's an Android design decision); but MPD needs to use an app-specific directory for its configuration file.

MaxKellermann avatar Jul 15 '22 16:07 MaxKellermann

OR perhaps provide a text box in the app to paste the content of mpd.conf (then later the app will generate it as a file anywhere you like and android permits)

roizcorp avatar Jul 15 '22 18:07 roizcorp

Is there any way to provide mpd.conf to the app on Android 14? (installed the last Version 0.23.14 (72) from FDroid but cannot find where to put the config file). Could you please suggest?

drew1kun avatar Oct 18 '23 22:10 drew1kun