You are here

Improve LosslessCut app

9 posts / 0 new
Last post
xmha97
Offline
Last seen: 6 months 1 week ago
Joined: 2021-01-03 06:04
Improve LosslessCut app

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.

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Tested?

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!

xmha97
Offline
Last seen: 6 months 1 week ago
Joined: 2021-01-03 06:04
Command Line

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.

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Electron

Ah, I think you mean Electron, as in the Chromium+node.js development toolkit.

Sometimes, the impossible can become possible, if you're awesome!

xmha97
Offline
Last seen: 6 months 1 week ago
Joined: 2021-01-03 06:04
Correction

Sorry, I corrected my messages.

xmha97
Offline
Last seen: 6 months 1 week ago
Joined: 2021-01-03 06:04
Change

Will I see this change in a future version of LosslessCut?

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 1 week ago
DeveloperModerator
Joined: 2008-07-24 18:46
Working Directory?

Why remove the working directory? This tells LosslessCut where the app's files reside - not the data ones, but the actual program files.

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Already Removed

It had already been removed in a previous release. I added it back in

Sometimes, the impossible can become possible, if you're awesome!

John T. Haller
John T. Haller's picture
Offline
Last seen: 6 hours 20 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Added in 3.47.1

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!

Log in or register to post comments