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

Symlink doesn't seem to work? #34

Closed
mungler opened this issue Nov 16, 2015 · 7 comments
Closed

Symlink doesn't seem to work? #34

mungler opened this issue Nov 16, 2015 · 7 comments

Comments

@mungler
Copy link

mungler commented Nov 16, 2015

Tried symlinking my .desk folder to Dropbox, but Desk complains "No desk dir! Run 'desk init'."

I think this line won't match a symlink, only a real dir: https://github.com/jamesob/desk/blob/master/desk#L101

@jamesob
Copy link
Owner

jamesob commented Nov 16, 2015

Hmm... In the test script, we actually test this case explicitly: https://github.com/jamesob/desk/blob/master/test/run_tests.sh#L44

Your platform may differ from the Docker environment, though. What OS and shell are you running on?

@mungler
Copy link
Author

mungler commented Nov 16, 2015

OS X 10.11.1, default installed shell (bash)

@jamesob
Copy link
Owner

jamesob commented Nov 16, 2015

I'm unable to repro on Ubuntu 14.04:

 $ ls -lah ~/.desk
lrwxrwxrwx 1 job job 32 Oct 28 10:33 /home/job/.desk -> /home/job/Dropbox/code/desk_conf
 $ bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
 $ [ ! -d "/home/job/.desk/" ] && echo "uhoh"
 $ 

I've got an OS X machine at home I'll try with tonight.

@mungler
Copy link
Author

mungler commented Nov 16, 2015

Hmm, interesting:

rory@Eddie:~ $ ls -lah ~/.desk
lrwxr-xr-x  1 rory  staff    33B 16 Nov 14:25 /Users/rory/.desk -> /Users/rory/Dropbox/dotfiles/desk
rory@Eddie:~ $ bash --version
GNU bash, version 4.3.39(1)-release (x86_64-apple-darwin14.4.0)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
rory@Eddie:~ $ [ ! -d "/Users/rory/.desk" ] && echo "uh oh"
rory@Eddie:~ $ 
rory@Eddie:~ $ desk
No desk activated.

No desk dir! Run 'desk init'.

@jamesob
Copy link
Owner

jamesob commented Nov 16, 2015

Could it be that you've got either DESK_DIR or DESK_DESKS_DIR set to some path that may not exist?

@mungler
Copy link
Author

mungler commented Nov 16, 2015

No, definitely didn't set any of the env vars.

On 16 Nov 2015, at 18:07, jamesob [email protected] wrote:

Could it be that you've got either DESK_DIR or DESK_DESKS_DIR set to some path that may not exist?


Reply to this email directly or view it on GitHub.

@jamesob
Copy link
Owner

jamesob commented Nov 16, 2015

@mungler I'd try modifying the script to see if you can get it to work, then we'll work backwards from there. I'll try to repro tonight.

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