Closed fa7ad closed 7 years ago
UPDATE: just as I expected, moving the block for cinnamon above the command for GNOME "fixes" it.
@fa7ad As you may have already figured out, it iterates over the list and picks the last valid cmd. Moving the block would break it for "cinnamon" environment.
Your "feature proposal" is a valid workaround but wouldn't make it an out of the box solution (environment agnostic).
Just a few ideas:
gsettings list-schemas | grep desktop.background
to list all possibilities.gsettings writable org.(gnome|cinnamon).desktop.background picture-uri
with an expected stdout of true.@sindresorhus this looks promising, but I don't think execFile
supports piping output to a different command. Can you think of a way to handle this?
I don't see why you need piping at all. Execute gsettings list-schemas
and use JS to get the desktop.background
from the result.
@sindresorhus so, this has to be executed during the app detection process correct?
@fa7ad Yes
PR #17
I get this error when I run
Error:
First I thought it was a bug on my fork, so I tried pulling from your repo, and then I tried installing the package from npm again. Same problem, my guess is that the command for Cinnamon somehow replaces the command for GNOME (probably because they both use
gsettings
).