diff options
author | GhostNaN <GhostNaN@protonmail.com> | 2024-01-27 19:44:27 -0500 |
---|---|---|
committer | GhostNaN <GhostNaN@protonmail.com> | 2024-01-27 19:44:27 -0500 |
commit | 1e6e1b432a7fef3b4710161049f5b1ed3cca1bd7 (patch) | |
tree | 3b0b6e92cb8b79fe02badcca10961bc786744b06 | |
parent | da1a3d42a6ea9f66c6fa4069a754ab71559d705a (diff) |
And check for empty mpv_options
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -424,7 +424,7 @@ static void set_init_mpv_options(const struct wl_state *state) { } // Set mpv_options passed - if (mpv_options) { + if (strcmp(mpv_options, "") != 0) { // Create config file name char *opt_config_path = calloc(strlen("/tmp/mpvpaper.config")+1 + strlen(state->monitor)+1, sizeof(char)); strcpy(opt_config_path, "/tmp/mpvpaper"); |