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

locate failing #12

Closed
BlackPR4 opened this issue Nov 23, 2017 · 2 comments
Closed

locate failing #12

BlackPR4 opened this issue Nov 23, 2017 · 2 comments

Comments

@BlackPR4
Copy link

Command returns the error below when trying to save:


rayr@rayr-desktop:~/.lwsm$ lwsm save
locate chrome-ojhjdjnggeknoafeebfnhpaldnmnlgdm.desktop { [Error: Command failed: /bin/sh -c locate chrome-ojhjdjnggeknoafeebfnhpaldnmnlgdm.desktop
]
killed: false,
code: 1,
signal: null,
cmd: '/bin/sh -c locate chrome-ojhjdjnggeknoafeebfnhpaldnmnlgdm.desktop' }
otherCmd: Generic Error { [Error: Command failed: /bin/sh -c locate chrome-ojhjdjnggeknoafeebfnhpaldnmnlgdm.desktop
]

I'm not sure I understand why locate is responding the way it is. When running manually, it doesn't like anything after the dash. But it doesn't mind the dash itself. This would seem to be a problem with locate itself, but perhaps there's a workaround.

@johannesjo
Copy link
Owner

Hey there! Thanks for reporting. Does executing sudo updatedb help?

@johannesjo
Copy link
Owner

I updated the lib not to use locate any more. So hopefully it should work now. If you encounter any problems please reopen.

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