Skip to content
This repository has been archived by the owner on Jan 17, 2021. It is now read-only.

Remote directory argument is not working #179

Open
mmiakashs opened this issue May 10, 2020 · 3 comments
Open

Remote directory argument is not working #179

mmiakashs opened this issue May 10, 2020 · 3 comments

Comments

@mmiakashs
Copy link

I successfully installed sshcode and it is running perfectly, except the remote directory argument is not working as expected. For example if I run the following it always starts the sshcode from remote server home directory (~/), i.e. sshcode ignores the second remote directory argument.
sshcode user@domain "~/projects/sourcegraph"

Did I need to configure anything after installing sshcode?

@Merith-TK
Copy link
Contributor

this is kinda a problem with code-server
it prioritizes the most recently opened folder rather than the command line argument, which needs to be fixed. but they only fixed it in the 3.0 builds, which arnt supported on sshcode

@mmiakashs
Copy link
Author

Thanks. Is there any way I can change the folder in which sshcode will open by default?

@Merith-TK
Copy link
Contributor

THe only way i found was to go through the code-server data directory for sshcode, and edit it so the last dir open is the one you want, chown it to another user, but allow the current user to read the file

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

No branches or pull requests

2 participants