Skip to content
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

obs portable still used C:\ProgramData #10486

Open
ghost opened this issue Apr 6, 2024 · 9 comments
Open

obs portable still used C:\ProgramData #10486

ghost opened this issue Apr 6, 2024 · 9 comments

Comments

@ghost
Copy link

ghost commented Apr 6, 2024

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 ghost changed the title obs portable stoill used C:\ProgramData obs portable still used C:\ProgramData Apr 6, 2024
@RytoEX
Copy link
Member

RytoEX commented Apr 16, 2024

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.

@niresh1234
Copy link

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

obs-studio-hook.zip

Untitled-1-01

@Fenrirthviti
Copy link
Member

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

@niresh1234
Copy link

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

@Fenrirthviti
Copy link
Member

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.

@niresh1234
Copy link

niresh1234 commented Apr 18, 2024

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

@Fenrirthviti
Copy link
Member

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.

@niresh1234
Copy link

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

@Fenrirthviti
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants