Author Topic: true portability  (Read 242 times)

Deb

  • Guest
true portability
« on: 3 Jan '25 - 17:33 »
Good day.

I was wondering how much extra coding effort would be required to make xmplay 4.0 a truly portable application that does not write outside its folder. I am aware of the new per-user config option and the PortableApps version, but files are still created outside the xmplay folder.

Thank you for your attention.

yoba

  • Posts: 27
Re: true portability
« Reply #1 on: 4 Jan '25 - 02:46 »
but files are still created outside the xmplay folder.
Such as? XMPlay itself don't writes anything in the Registry nor %APPDATA% or anywhere.
The only exception is buggy xmp-ym.dll plugin, which writes and multiplies his xmp-ym.ini literally everywhere, including Music directory.

Winamp plugins/visualisations - yes, some may write its settings in the Registry or even %APPDATA%, but that's not player's fault.

Also, if listen Internet radios, SOME (rare) stations can write its cookies in system Cookies folder, or when listen from net share, depending on settings, cache may be written in system internet cache directory, but again, that's not XMPlay's fault, it just uses system's functions for Internet streaming.

Ian @ un4seen

  • Administrator
  • Posts: 26234
Re: true portability
« Reply #2 on: 6 Jan '25 - 13:17 »
Apart from the temporary directory (eg. when extracting an archived file for a Winamp plugin to play), XMPlay shouldn't be writing outside of its folder (%AppData%\XMPlay if per-user config is enabled). Plugins shouldn't either but I guess it's possible some 3rd-party ones do, as yoba mentions. Please list any files you've seen created elsewhere, and when they were created, eg. when playing a particular file?

Person

  • Guest
Re: true portability
« Reply #3 on: 14 Jan '25 - 15:17 »
Apart from the temporary directory (eg. when extracting an archived file for a Winamp plugin to play), XMPlay shouldn't be writing outside of its folder (%AppData%\XMPlay if per-user config is enabled).

Hello, I am curious: how does XMPlay.exe know if per-user config is enabled or not?
Does it read this hint from the Registry or a configuration file somewhere?

Ian @ un4seen

  • Administrator
  • Posts: 26234
Re: true portability
« Reply #4 on: 14 Jan '25 - 16:34 »
The "per-user config" setting is detected by whether there's an XMPLAY.INI file in the %AppData%\XMPlay folder. That file will have been moved there when the option was first enabled (in the "Miscellaneous" options page).