rawnly / splash-cli

A simple, CLI to download Unsplash wallpapers. Nothing fancy — it just works.
http://splash-cli.app?ref=github
546 stars 28 forks source link

Error: Command failed: which... #37

Closed punkscience closed 5 years ago

punkscience commented 5 years ago

Basic informations

Before you go

^ 404 Error

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.

rawnly commented 5 years ago

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.

punkscience commented 5 years ago

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)
punkscience commented 5 years ago

Happy to help you debug if you need it.

rawnly commented 5 years ago

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

punkscience commented 5 years ago

I get the following (screenshot attached).

✔ Connected! 🌍 Magic stuffevents.js:183 throw er; // Unhandled 'error' event ^

Error: EACCES: permission denied, open '/home/darrylwright/Pictures/splash_photos/ATsEkysmm0Y.jpg' Sent from Mailspring (https://link.getmailspring.com/link/1543192992.local-5f2b4d98-329d-v1.5.2-31660462@getmailspring.com/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=cmVwbHkrMDAwMzFkOWZmMjQ5ZWUzNmZlYWM5N2UwZGI1YTE2MGRjZjhjNDdiMDAzNzRkZGQ5OTJjZjAwMDAwMDAxMTgxMjljNDU5MmExNjljZTE2ZTJhMjQ4QHJlcGx5LmdpdGh1Yi5jb20%3D), the best free email app for work On Nov 25 2018, at 1:22 pm, Federico Vitale notifications@github.com wrote:

Hi, does the splash command (without flags/options) works? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/1543192992.local-5f2b4d98-329d-v1.5.2-31660462@getmailspring.com/1?redirect=https%3A%2F%2Fgithub.com%2Fsplash-cli%2Fsplash-cli%2Fissues%2F37%23issuecomment-441456678&recipient=cmVwbHkrMDAwMzFkOWZmMjQ5ZWUzNmZlYWM5N2UwZGI1YTE2MGRjZjhjNDdiMDAzNzRkZGQ5OTJjZjAwMDAwMDAxMTgxMjljNDU5MmExNjljZTE2ZTJhMjQ4QHJlcGx5LmdpdGh1Yi5jb20%3D), or mute the thread (https://link.getmailspring.com/link/1543192992.local-5f2b4d98-329d-v1.5.2-31660462@getmailspring.com/2?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAMdnyWZ2Egj42v9NekZb-dltHxvYvKwks5uytHFgaJpZM4YxPB2&recipient=cmVwbHkrMDAwMzFkOWZmMjQ5ZWUzNmZlYWM5N2UwZGI1YTE2MGRjZjhjNDdiMDAzNzRkZGQ5OTJjZjAwMDAwMDAxMTgxMjljNDU5MmExNjljZTE2ZTJhMjQ4QHJlcGx5LmdpdGh1Yi5jb20%3D).

rawnly commented 5 years ago

Have you tried editing permissions of the following path?

home/darrylwright/Pictures/splash_photos

punkscience commented 5 years ago

That folder doesn't exist. The pictures are getting downloaded to my home folder.

On Nov 25 2018, at 8:47 pm, Federico Vitale notifications@github.com wrote:

Have you tried editing permissions of the following path? home/darrylwright/Pictures/splash_photos — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://link.getmailspring.com/link/1543204264.local-de686da1-bc95-v1.5.2-31660462@getmailspring.com/0?redirect=https%3A%2F%2Fgithub.com%2Fsplash-cli%2Fsplash-cli%2Fissues%2F37%23issuecomment-441489445&recipient=cmVwbHkrMDAwMzFkOWYwNWQzNjViNDljOWUwOTNkYjRlMWFhNzg1MGEzM2NjNWYyNzExNjE5OTJjZjAwMDAwMDAxMTgxMzA0OTM5MmExNjljZTE2ZTJhMjQ4QHJlcGx5LmdpdGh1Yi5jb20%3D), or mute the thread (https://link.getmailspring.com/link/1543204264.local-de686da1-bc95-v1.5.2-31660462@getmailspring.com/1?redirect=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAAMdn7S5g6MnpKH3bhjPdI1BzA_eWcX7ks5uyzoTgaJpZM4YxPB2&recipient=cmVwbHkrMDAwMzFkOWYwNWQzNjViNDljOWUwOTNkYjRlMWFhNzg1MGEzM2NjNWYyNzExNjE5OTJjZjAwMDAwMDAxMTgxMzA0OTM5MmExNjljZTE2ZTJhMjQ4QHJlcGx5LmdpdGh1Yi5jb20%3D).

rawnly commented 5 years ago

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.
punkscience commented 5 years ago

I tried creating ~/Pictures/splash_photos manually and it had no effect. When I tried to run splash settings I saw the following screen (below). I am afraid I don't know what any of these means so it wasn't clear where to set the folder. I couldn't get past the first question.

 _(_)     ___ _ __ | | __ _ ___| |__   (_)     _ (_)

() _ / | ' | |/ ` / | ' \ ()
(
) () _ \ |) | | (| _ \ | | | ()
(
) _ |_/ ._/||\,_|__/| || () ()
() ()|| () () ()() ()() ()(_)

( B | y ) ( D | a | n | i | e | l ) ( P | r | i | c | e )

( v2.8.0 [6th April 2018] Copyright (C) 2005-2017 )

rawnly commented 5 years ago

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

YARN

punkscience commented 5 years ago

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)
rawnly commented 5 years ago

Sorry for inactivity, please keep watching #34

rawnly commented 5 years ago

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

punkscience commented 5 years ago

Sorry guys -- I actually wound up buying a Macbook Pro and switching back to MacOS! :)

On Mon, Jan 21, 2019 at 10:44 AM Federico Vitale notifications@github.com wrote:

@eyesno https://github.com/eyesno any news? Have you tried with newer versions?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/splash-cli/splash-cli/issues/37#issuecomment-456097208, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMdnzP6GzbAmLq4ZhxOsKeOvNs1z5D0ks5vFdJigaJpZM4YxPB2 .

rawnly commented 5 years ago

So I can close this issue?

punkscience commented 5 years ago

It's up to you, of course, but if nobody else has reported it and you're unable to reproduce it, I suppose it would make sense.

Darryl

On Mon, Jan 21, 2019 at 11:40 AM Federico Vitale notifications@github.com wrote:

So I can close this issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/splash-cli/splash-cli/issues/37#issuecomment-456115615, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMdnwvY3uyQ4L0mi2rmPIol5-aOT7RDks5vFd90gaJpZM4YxPB2 .

rawnly commented 5 years ago

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