Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/bin/sh: duplicity: command not found #7

Open
fbbu opened this issue Nov 30, 2015 · 4 comments
Open

/bin/sh: duplicity: command not found #7

fbbu opened this issue Nov 30, 2015 · 4 comments

Comments

@fbbu
Copy link

fbbu commented Nov 30, 2015

On Mac OS, I have duplicity in my $PATH (/opt/local/bin) and I'm able to launch it from the shell.

When I try to do anything with vuplicity I get a message stating that it doesn't find duplicity:

Refreshing status...

/bin/sh: duplicity: command not found

A Duplicity error occurred.

Am I doing anything wrong ?

@fbbu
Copy link
Author

fbbu commented Nov 30, 2015

I think there's a problem with the user who is running the application (on Mac OS at least).
I did a symbolic link to put duplicity in /usr/local/bin and now vuplicity finds the executable duplicity.
But, the rsync command which works in the shell doesn't work with vuplicity, I think it's because the application is not run under the correct user (which may also explain the $PATH issue).

@fbbu
Copy link
Author

fbbu commented Dec 1, 2015

Maybe related to the same problem as here:
electron/electron#550

@johansatge
Copy link
Owner

Hi,
thanks for your feedback!

You are true, it looks like Electron has a problem on OSX to get the right $PATH.

@sindresorhus' fix-path package seems to fix this, I will try to use it.

(I did not have a lot a free time lately, feel free to try this and submit a pull request if you want to !)

@fbbu
Copy link
Author

fbbu commented Dec 4, 2015

Thank you for the confirmation.
I did install npm and ran the following command:
npm install --save fix-path
This doesn't change anything, is there anything to add to the vuplicity code (I'm unfortunately not familiar with npm not Electron) ?
Also, it really seems that the vuplicity app is ran as "root" user and not my user, thus duplicit doesn't work as expected since my ssh config is not done for "root".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants