Comments (5)
With the help of @joh6nn I have worked out that this issue rides on the way in which portable Espanso is started. The following notes are from Windows 11 using Powershell, with portable Espanso in D:\Temp\EspansoPortable.
If I exit installed Espanso and start portable Espanso from the portable folder using 'START_ESPANSO.bat' (as recommended in the portable readme.txt file) and then enter 'espanso path' I get the following response:
Config: C:\Users\Cam\AppData\Roaming\espanso
Packages: C:\Users\Cam\AppData\Roaming\espanso\match\packages
Runtime: C:\Users\Cam\AppData\Local\espanso
If I then install a package using 'espanso install package-name' it goes into the default packages folder for installed Espanso even though portable Espanso is running.
However, if I exit portable Espanso and restart it using '.\espanso.cmd start' followed by '.\espanso.cmd path' I get the following response:
Config: D:\Temp\EspansoPortable\.espanso
Packages: D:\Temp\EspansoPortable\.espanso\match\packages
Runtime: D:\Temp\EspansoPortable\.espanso-runtime
If I then install a package using '.\espanso.cmd install package-name' it goes into the packages folder for portable Espanso as expected.
In summary, this issue is not a bug but it would be a useful enhancement if it was clarified in the readme file and Espanso docs.
from espanso.
https://github.com/search?q=repo%3Aespanso%2Fespanso%20start_espanso.bat&type=code appears to show the origin of START_ESPANSO.bat
.
Is the code, or the documentation, incorrect?
from espanso.
@smeech START_ESPANSO.bat is a batch file with the following content:
start espansod.exe launcher
This differs from espanso.cmd which is a command that contains:
@"%~dp0espansod.exe" %*
I can use either to start portable Espanso but the first one picks up paths from the installed copy of Espanso while the second one picks up the expected portable paths. There is a comment at the foot of the README.txt for portable Espanso, which indicates that espanso.cmd handles STD console handles correctly. However, I think most users would take the advice of the top of the file to start espanso by clicking on START_ESPANSO.bat (also advised at https://espanso.org/docs/get-started).
from espanso.
Does it make a difference if installed Espanso hasn't been run?
Can anyone comment on why START_ESPANSO.bat
might have its current contents (given that we're not likely to hear from Federico).
Do we need to correct the code, or the documentation?
from espanso.
@smeech It doesn't make a difference if installed Espanso has not been run. It seems that START_ESPANSO.bat
defers to the paths set by the installer whereas .\espanso.cmd
correctly picks up the portable paths. This comparison holds true while portable Espanso is running.
from espanso.
Related Issues (20)
- In-app UI for configuration HOT 2
- Where can I find an ARM Linux version ?
- Add the ability to trigger expansions using the CLI HOT 12
- Some kind of tooltip in forms
- Allow user to mark some word that won't be uppercased with "uppercase_style: capitalize_words"
- 'includes:' doesn't omit regular matches
- Multiline replacement doesn't get replaced correctly sometimes and instead letter 'v' is the output HOT 2
- The maximum length of a "regex match" is set to 30 characters HOT 1
- Request for 32-bit Support for Espanso HOT 1
- Incorrect cursor placement HOT 4
- Exclude firefox HOT 1
- Won't start saying that it's not in the Applications folder, but it is HOT 5
- espanso match list --json returns wrong replace HOT 1
- General rust code quality
- Can't create snippet to add $|$ (the actual set of characters) HOT 6
- We have other ways than having this many traits
- Unlimited regex pattern length HOT 1
- Expanso auto installed itself on a fresh copy of Windows 10 and won't uninstall HOT 2
- Some symbols that indicate the end of a word don't trigger whole-word matches HOT 1
- `espanso package update --all` command HOT 2
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 espanso.