obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

obs portable still used C:\ProgramData

Open ghost opened this issue 1 year ago • 10 comments

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

30.1.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/8eBLXexJZ6QihpCT

OBS Studio Crash Log URL

No response

Expected Behavior

portable version should only use obs directory instead using system folder.

Current Behavior

obs portable still use C:\ProgramData folder

auto create two folders (even using portable) C:\ProgramData\obs-studio C:\ProgramData\obs-studio-hook

Steps to Reproduce

  1. open obs portable (obs_portable_mode.txt method)
  2. see C:\ProgramData folder
  3. two folders created seen ...

Anything else we should know?

No response

ghost avatar Apr 06 '24 03:04 ghost

Running OBS Studio 30.1.2 in Portable Mode in a fresh Windows Sandbox, I do not see exactly this behavior. Instead, I get the following folders:

C:\ProgramData\obs-studio
C;\ProgramData\obs-studio\shader-cache

I do not get the obs-studio-hook folder.

RytoEX avatar Apr 16 '24 18:04 RytoEX

@RytoEX see this (also included content inside C:\ProgramData\obs-studio-hook folder)

obs-studio-hook.zip

Untitled-1-01

niresh1234 avatar Apr 18 '24 02:04 niresh1234

Are you absolutely certain this was placed by a portable install? Those files are expected from a traditional installation.

Fenrirthviti avatar Apr 18 '24 02:04 Fenrirthviti

@Fenrirthviti yes, portable install..... using zip + obs_portable_mode.txt

niresh1234 avatar Apr 18 '24 02:04 niresh1234

Thanks, confirmed in sandbox as well that the graphics hook is installed.

I'm not entirely sure this is something we can avoid, as it's required for the functionality of the game capture feature on windows. Potentially there could be a warning on first launch that certain files have to be installed to a shared user location for OBS to function properly, but I feel that just leads to more user confusion than anything else.

Fenrirthviti avatar Apr 18 '24 02:04 Fenrirthviti

@Fenrirthviti if I delete C:\ProgramData\obs-studio-hook folder and run OBS, the folder (with content) created again.

niresh1234 avatar Apr 18 '24 02:04 niresh1234

Yes, confirmed that to be the case. As mentioned above, this is currently required for OBS to function, so I'm not sure what the best solution here is. I don't believe that with the way game capture works we can make it fully portable. I'm not a fan of silently breaking functionality, and users don't read popups, so it's a bit of an awkward situation. We'll discuss internally.

Fenrirthviti avatar Apr 18 '24 02:04 Fenrirthviti

@Fenrirthviti why not simply include this file in obs studio main\data folder?

niresh1234 avatar Apr 18 '24 02:04 niresh1234

Because the game capture currently expects it to be there, as well as other permissions and security issues around how the game capture hook works. Putting in OBS's directory and loading it from an arbitrary location could potentially break capture with many games.

Fenrirthviti avatar Apr 18 '24 02:04 Fenrirthviti

I'm having the same problem, and I personally think it's better to be fully portable

kaseeen avatar Jul 02 '24 13:07 kaseeen