Comments (19)
Did you create the symlink inside WSL? That would likely not work because wsltty uses a cygwin runtime environment.
from wsltty.
Nope. I have had for a long time an existing Cygwin installation, here is a screenshot from its home directory:
I recently installed WSL (creating a user called Phil) and then wsltty. Here is a screenshot of my WSL home directory:
Notice there is no symlink. It is a completely different directory. Yet somehow wsltty seems to be looking in my Cygwin home directory.
from wsltty.
WSLtty comes with its own standalone cygwin mini-installation which is different from your own one.
They happen to share the same home directory because you set HOME at Windows level (otherwise you would be getting a different error message, I suppose).
But the wsltty cygwin environment has no /c directory! It seems you either reconfigured your cygdrive prefix or set a symbolic link /c, in either case this is not visible in the wsltty environment.
This does not fully explain, though, why the absolute link target is appended to the link location and /c/Users/pdaniels appears twice in the error message...
from wsltty.
from wsltty.
Does it work if you turn this into a relative link?
You could also use a "normal" .minttyrc and include the theme with a ThemeFile option, using a Windows path.
from wsltty.
Actually, the error message is correct because in your setup,
'C:\Users\pdaniels\AppData\Local\wsltty' is the root directory of the wsltty standalone cygwin environment,
and
'\c\Users\pdaniels\repos\dotfiles\colors\mintty-themes\SolarizedDark'
is the resolved link which cannot be found in that environment.
Perhaps it would be more useful to report the cygwin path in the error message which would then be
/c/Users/pdaniels/repos/dotfiles/colors/mintty-themes/SolarizedDark
or find some other clever way to be more helpful with such a message;
I could consider the --wsl option to include a hint to the root environment.
from wsltty.
Quoting the POSIX path in the error message is not a good idea, especially for wsltty, because it would likely be mistaken for a WSL path (while in fact referring to the wsltty cygwin root).
But mintty can identify and strip off the root prefix.
from wsltty.
from wsltty.
Your case is ~/.minttyrc
as listed in the mintty manual page. You are right the wsltty project page (README) maps that to %LOCALAPPDATA%\wsltty\home\%USERNAME%\.minttyrc
and does not consider the case that you set HOME
at Windows level which would redirect both \home\
cases.
The cygwin installations are indeed completey separate, but by setting HOME, you would at least merge the home directory.
from wsltty.
Released 0.7.7. Please recheck.
from wsltty.
You are right the wsltty project page (README) maps that to
%LOCALAPPDATA%\wsltty\home\%USERNAME%\.minttyrc
Would it be an option to have mintty create that folder automatically if it does not exist?
As long as that is the same file which is read upon starting mintty, I suspect that will end up giving most users what they expect.
from wsltty.
The ...home... location is now obsolete.
0.7.7 changes that to %APPDATA%\wsltty\config
and subfolders of %APPDATA%\wsltty
should now be created as needed. Please check and report back if anything does not work.
from wsltty.
I just tried downloading and installing 0.7.7
from the releases-tab here today, and this is where I experienced this behaviour.
from wsltty.
Which behaviour?
Please describe your symptoms in detail.
Since some things have changed, referring vaguely to previous problems does not really tell me what's going on.
from wsltty.
Fair enough. Here's my use case:
- Have a clean machine which has never installed wsltty via the Github-releases provided installer (only through third parties)
- Download the installer for latest (at time of writing 0.7.7).
- Run installer.
- Start MinTTY with via
%LOCALAPPDATA%\wsltty\bin\mintty.exe \bin\mintty.exe
- Go to options menu.
- Change somthing.
- Click Save
When I do that, saving fails, bebecause MinTTY tries to save settings in a file in a wsltty-subfolder which doesn't exist. For me this subfodler is %LOCALAPPDATA%\wsltty\home\josteink
.
from wsltty.
- Start MinTTY with via %LOCALAPPDATA%\wsltty\bin\mintty.exe \bin\mintty.exe
If you do that directly (command-line / Explorer), the now deprecated directory would indeed by addressed for configuration. The intended way to start wsltty is either via a Shorcut (desktop or Start menu shortcut) or with one of the wsl*.bat scripts generated into %LOCALAPPDATA%\wsltty from a Windows command-line. In these cases, the --configdir
option is added to point you to the intended configuration directory which should also have been created (%APPDATA%\wsltty
, note no LOCAL
here).
from wsltty.
OK. Gotcha. That makes sense. Thanks.
from wsltty.
I've just retested and it is working for me. The two installations are now indepdenent (config file was created in %AppData%/Roaming/wsltty/config.
Nice work!
from wsltty.
Actually, I forgot to set the --configdir in the context menu entries that can optionally be installed ("add to context menu").
from wsltty.
Related Issues (20)
- 22H2 update broke mintty? closes immediately HOT 3
- HOME env variable is drop when invoking windows exe from WSL HOT 24
- Extraneous % in shortcuts HOT 1
- (Suggestion) Automate adding necessary ASLR exclusions HOT 4
- GetVmId:318: CreateLxProcess: WSL 2 requires an update to its kernel component. HOT 5
- wslbridge2 segfault HOT 1
- New session loses focus on startup (WSL issue) HOT 12
- double click text selection not selecting the entire path HOT 4
- How to enforce startup behaviour (e.g. window position)? HOT 5
- Ctrl-C can't stop windows processes HOT 8
- How to confirm settings are loaded in minttyrc / %APPDATA%\wsltty\config? HOT 1
- Weird rendering issue by changed color scheme (after upgrading to debian 12) HOT 9
- Occasionally print "[[O" or "[[I" abnormally on the screen HOT 15
- Inadvertent bidi rendering of some terminal UIs (lazygit) HOT 15
- AltGr randomly stops working HOT 18
- Issues with the Context Menu HOT 8
- Why the alacritty doesn't need wslbridge? How does it work with WSL? HOT 3
- Memory leak HOT 10
- [Question] Is there a way to align `FontChoice` font ? HOT 14
- wsltty won't start with wsl2 version 2.0.0 HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsltty.