Hi, The portable version of the LosslessCut app can be improved.
LosslessCutPortable.ini:
[Launch]
ProgramExecutable=LosslessCut\LosslessCut.exe
➖ ;WorkingDirectory=%PAL:AppDir%\LosslessCut
➕ CommandLineArguments=--user-data-dir=%PAL:DataDir%\AppData
DirectoryMoveOK=yes
SupportsUNC=yes
➖ [DirectoriesMove]
➖ LosslessCutAppData=%APPDATA%\LosslessCut
⋮
This command line can be used for all Electron apps.
Thanks.
Did you test this with this specific app? I think "This command line can be used for all electronic apps" is a mistranslation as most apps do not have a --user-data-dir parameter they will accept. Additionally, removing DirectoryMoveOK=yes is inappropriate as that tells the launcher that the app will continue to work when its directory is changed.
Sometimes, the impossible can become possible, if you're awesome!
Yes, I tested the LosslessCut with this command line.
We know that Electron apps are based on Google Chrome.
When this command line works in Chrome, it also works in these apps.
I tested many apps and did not see an app in which this command line does not work.
A list of some of them can be seen below:
- Simplenote
- Obsidian
- LosslessCut
- Anghami
- RadioJavan
- Bitwarden
- Visual Studio Code
- Clash for Windows
- Azure Data Studio
- Microsoft Teams
- GitHub Desktop
- CPod
- Trello
- Todoist
- Insomnia
- Motrix
and etc...
Also, I added the DirectoryMoveOK line, thanks for your reply.
Ah, I think you mean Electron, as in the Chromium+node.js development toolkit.
Sometimes, the impossible can become possible, if you're awesome!
Sorry, I corrected my messages.
Will I see this change in a future version of LosslessCut?
Why remove the working directory? This tells LosslessCut where the app's files reside - not the data ones, but the actual program files.
It had already been removed in a previous release. I added it back in
Sometimes, the impossible can become possible, if you're awesome!
A variant of this was added in 3.47.1. I've already been doing this for Draw.io, guess I forgot to add it to others. I'll update them as new releases happen.
Sometimes, the impossible can become possible, if you're awesome!