-
Notifications
You must be signed in to change notification settings - Fork 104
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
Start wsltty terminal in WSL user's home directory and other questions #3
Comments
How exactly did you try to achieve that? Actually, the default setup, using bash option
Hmm, for this a .bat script wrapper would have to invoke what now the shortcut does, and add an
There is the wsl-terminal project that adds a suitable tool for this purpose. It does not install out-of-the-box, on the other hand. If people want wsltty to provide that, it might be considered... |
In order to get Mintty to launch in ~, I had to do the following Change the filepath in the shortcut to:
(MSD=Mintty Start Dir) then add an if statement to the .bashrc:
|
I guess that writing a script or a batch file with arbitrary parameter passing (and allowing manual location overriding by passing the "MSD" env var argument) could be annoying, but it would then be a fully general solution. Anyway, excellent project! Excited to see more. |
Setting MSD is really user-specific and it's out of scope of wsltty what you do in your profile scripts, so I wonder what you think wsltty could do better here (but also why this failed for you in the first place). |
@mintty Launching from the desktop shortcut starts in the "starts in" directory, not the ~ directory of wsl. |
In the standard configuration, it starts in your home directory. If you tweak it, anything can happen. |
@mintty I'm sitting here, I reinstalled wsltty, and when I click the link on my desktop, it is starting in C: Here is a screenshot after a clean install (all I did was change my colorscheme to solarized and increase the font size): When I look at the Desktop Shortcut's properties, I see: as expected. I am using a brand new unedited .bashrc on a brand new installation of Windows Subsystem for Linux, on a brand new install of wsltty 0.51. Can you explain what I'm doing wrong, because what you are saying (that it starts in /home/fpqc) is not true. |
I can confirm the issue with the start directory. It's starting in C:. I've tried |
I was in fact mistaken by my own profile scripts, sorry. The WSL global scripts in /etc do not
Or the home directory could be enforced by invoking |
Released 0.6.0:
|
There is option |
I already updated manually the bridge. I think you should change default shortcut tho. |
My point was that I think offering %USERPROFILE% may actually be a cute idea, and can easily be modified as described, so maybe I should not change the default shortcut? I could also provide different shortcuts, at least in a Start menu subfolder. |
%Userprofile% has the DriveFS, not VolFS. It is formally very different and does not support inotify or permissions. |
No idea what you mean. It's the name of the user's Windows profile directory, and you can |
In ~/.profile just before the "fi" terminator in the # if running bash code block add |
@thejimmyjames There is already a way in wslbridge to do this with a parameter.. |
Revised set of installed shortcuts and command-line scripts in 0.7.0. |
Released 1.8.0, resolving this issue to the bash.exe launcher. |
…tty#60) -~ start in home directory (~mintty/wsltty#3)
I have default shell changed to /usr/bin/zsh and My command line is as follows:
How do I start shell in |
Replace |
Thanks, this works |
@mintty I'm running into something similar here, where my mintty terminal opens up as |
Likely a different issue, however, I do not reproduce that. My wsltty WSL session starts in user mode. |
Thank you for the quick response. I've created #270 to ask more question about that. |
I modified the shortcut to start in
%localappdata%\lxss\home\fpqc
, but for some reason this starts wsltty in the root (/) of the lxss installation rather than the user home/home/fpqc
.Also, is there a way to invoke wsltty from the Run (Win+R) dialog?
Lastly, is there any way as of yet to add functionality similar to @xilun 's cbwin, which allows invoking Windows applications from a WSL instance by calling back over tcp? This functionality is nice, since it allows you to do fun things like run powershell and cmd inside of tmux (although I guess since this is using cygwin, we could just use the cygwin version of tmux and load wslbridge from there instead)?
The text was updated successfully, but these errors were encountered: