-
Notifications
You must be signed in to change notification settings - Fork 92
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
Keep configurations in separate dedicated dir even for portable install #934
Comments
The scoop package manager's manifest for smplayer: $ # Outputs of these commands shared below:
$ scoop cat smplayer | jq .persist[]
$ scoop cat smplayer | jq -r .pre_install[] # | bat -pl ps1
$ scoop cat smplayer | jq -r .pre_uninstall[] # | bat -pl ps1
"screenshots"
"hdpi.ini"
"playlist.ini"
"favorites.m3u8"
"radio.m3u8"
"tv.m3u8"
'hdpi.ini', 'playlist.ini', 'favorites.m3u8', 'radio.m3u8', 'tv.m3u8' | ForEach-Object {
if (!(Test-Path "$persist_dir\$_")) { New-Item "$dir\$_" | Out-Null }
}
if (Test-Path "$persist_dir\smplayer.ini") { Copy-Item "$persist_dir\smplayer.ini" "$dir\smplayer.ini" }
# The following must be done as SMPlayer deletes the original file which was linked to the persist folder when it saves settings, rather than editing the file.
Copy-Item "$dir\smplayer.ini" "$persist_dir\smplayer.ini"
|
I think this is fixed in commit cb08e90 |
Please check if this is fixed in the development version: |
hi! thanks for the updates. i will check them in some days. as i have already spent way tooo much times managing my app installs in past few days, unfortunately i won't be able to do it soon... but i will try to do it within 15 days. |
hi! yes... have tried using this, and am recording my steps below: (latest v*.10266 unless specified)
so yeah, i'd say it's working now... |
basically, what it boils down to, in context of this new behaviour, is the following:
Original commentthe way scoop works (as relevant to issue at hand) is as follows:
the existing manifest file for smplayer had following scripts for
|
Is your feature request related to a problem? Please describe.
The configuration files are scattered all around in "portable install", i.e. "Open configuration folder < Help"
A-
* (h
>o
) is same as the root of smplayer installation dir.This makes it difficult to export or make a backup of configurations for these.
Describe the solution you'd like
Similar to how the configuration folder when the program is installed systemwide (non-portable) shows up to be:
%USERPROFILE%/.smplayer
, for portable install too, it can be a.smplayer
dir inside the root of smplayer install.Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Contents of the config folder from system-wide install:
I have switched to using scoop package manager to install smplayer, and mpv etc. (details in comment below)
Environment & versions:
Version: 23.12.0 (revision 10207) (64-bit)
Portable Edition
Using Qt 5.15.2 (compiled with Qt 5.15.2)
Using MPV 0.36.0
The text was updated successfully, but these errors were encountered: