rawnly/splash-cli

Error: Command failed: which...

punkscience opened this issue · 17 comments

Basic informations

  • Splash CLI version: 3.3.0
  • Node version: v8.10.0
  • Your OS: Ubuntu 18.04.1

Before you go

  • [?] I've read the FAQ section.

^ 404 Error

  • I've the latest version of Splash CLI installed
  • [X ] I've searched other issues like mine but I haven't found a solution.

The ISSUE

✔ Connected!
✔ Something is happening...
Error: Command failed: which -a gsettings; which -a setroot; which -a pcmanfm; which -a feh; which -a nitrogen; which -a xfconf-query; which -a gconftool-2; which -a dcop; which -a dconf; which -a qdbus

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:567:12)

To Reproduce
Steps to reproduce the behavior:

  1. Run splash --today

Expected behavior
I expected it to download and replace my wallpaper. :/

Console Output
See above.

The “—today” flag does not exist. It is —day..

However I don’t think that this is the cause o f the problem. Tomorrow morning I’ll investigate 🤔

I’m sorry to all Linux users but I don’t have a Linux machine to test Splash Cli on.

Sorry -- my bad. :) Also tried with '--day' and '-c' -- got this result:

✔ Connected!
✔ Something is happening...
Error: Command failed: which -a gsettings; which -a setroot; which -a pcmanfm; which -a feh; which -a nitrogen; which -a xfc
onf-query; which -a gconftool-2; which -a dcop; which -a dconf; which -a qdbus

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

Happy to help you debug if you need it.

Hi, does the splash command (without flags/options) works?

Have you tried editing permissions of the following path?

home/darrylwright/Pictures/splash_photos

Try by creating it via mkdir -p ~/Pictures/splash_photos or may be changing the default dir in splash-cli to a custom path.


To change the dir of splash-cli just do the following:

  splash settings
  # ... Then is the 2nd question that is presented.

Are you sure you had installed splash-cli correctly?

v2.8.0 [6th April 2018] Copyright (C) 2005-2017 ) * SPLASH comes with ABSOLUTELY NO WARRANTY. This is free software; and you are welcome to redistribute it under certain conditions (see LICENCE file for details). * Updates/userguide: http://users.monash.edu.au/~dprice/splash Email: daniel.price@monash.edu or splash-users@googlegroups.com Please cite Price (2007), PASA, 24, 159-173 (arXiv:0709.0832) if you use SPLASH in print and don't forget to send pics for the gallery. splash.defaults not found: using default settings reading ascii format

This doesn't seems to be splash-cli, maybe you have some conflict.

NPM

  • Uninstall: npm remove -g splash-cli
  • Installation: npm i -g splash-cli

YARN

  • Uninstall: yarn global remove splash-cli
  • Installation: yarn global add splash-cli

Ok -- so I uninstalled and reinstalled and this time the settings worked perfectly. There is a default folder setup for the splash images. But I still seem to get the same crash. The download part seems to function perfectly but whatever that last step is results in this:

Error: Command failed: which -a gsettings; which -a setroot; which -a pcmanfm; which -a feh; which -a nitrogen; which -a xfconf-query; which -a gconftool-2; which -a dcop; which -a dconf; which -a qdbus

at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

Sorry for inactivity, please keep watching #34

@eyesno any news? Have you tried with newer versions?

So I can close this issue?

Perfect 👌🏻 I just wanted your confirm before closing it✌️