sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.1k stars 1.46k forks source link

Cannot launch Discord #3057

Open koopa990 opened 1 year ago

koopa990 commented 1 year ago

Describe what you noticed and did

  1. Created a new box for Discord C:\sandbox\myname\Discord
  2. Attempted to launch both from the .exe inside of the folder AND launch through the Start Menu
  3. Program terminated without any errors

How often did you encounter it so far?

every launch--first time

Affected program

Discord 1.0-9013

Download link

not relevant

Where is the program located?

The program is installed only outside the sandbox.

Expected behavior

To open a secondary Process of Discord for alternate account use.

What is your Windows edition and version?

Windows 10 2H22 Pro

In which Windows account you have this problem?

A Microsoft account (Standard user)., A Microsoft account (Administrator).

Please mention any installed security software

Malware Bytes

What version of Sandboxie are you running?

1.9.6 64x

Is it a new installation of Sandboxie?

I recently did a new clean installation.

Is it a regression?

No response

In which sandbox type you have this problem?

In a standard isolation sandbox (yellow sandbox icon).

Can you reproduce this problem on a new empty sandbox?

I can confirm it also on a new empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

I did happen to lightly convert my OS with a tool called Ameliorated AtlasOS, which makes my system run faster by mitigating Microsoft related services.

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

No response

offhub commented 1 year ago

On my system it worked fine. Try without Malwarebytes.

Windows 10 22H2 Pro A Microsoft account (Administrator) Sandboxie Plus 1.9.8 No Malwarebytes No modifications

koopa990 commented 1 year ago

On my system it worked fine. Try without Malwarebytes.

Windows 10 22H2 Pro A Microsoft account (Administrator) Sandboxie Plus 1.9.8 No Malwarebytes No modifications

I did not have Malwarebytes running. Does it need UAC turned on to work?

Edit: I got UAC on, still nothing!

koopa990 commented 1 year ago

please, I still cannot get my Discord to run!

DavidXanatos commented 1 year ago

I have just now for testing installed a discord in into a yellow box build 1.9.8 and it works fine on y clean windows 1 VM, your issue must be related to some configuration you may have, if it happens with a new box then perhaps its a global preset that causes the issues.

koopa990 commented 1 year ago

I have just now for testing installed a discord in into a yellow box build 1.9.8 and it works fine on y clean windows 1 VM, your issue must be related to some configuration you may have, if it happens with a new box then perhaps its a global preset that causes the issues.

I just created a new box with default options and configurations. If its something global, then what do I look for exactly?

DavidXanatos commented 1 year ago

I would recommend to rename your sandboxie.ini to somethign else and let it be recreated with all defaults, then try to install and run discord in the default box, when this works then you can start adding options from your old sandboxie ini line by line using a text editor.

koopa990 commented 1 year ago

I would recommend to rename your sandboxie.ini to somethign else and let it be recreated with all defaults, then try to install and run discord in the default box, when this works then you can start adding options from your old sandboxie ini line by line using a text editor.

I Don't see the .ini in the sandboxie Plus folder.

isaak654 commented 1 year ago

I Don't see the .ini in the sandboxie Plus folder.

https://sandboxie-plus.github.io/sandboxie-docs/Content/SandboxieIni.html#location

koopa990 commented 1 year ago

I Don't see the .ini in the sandboxie Plus folder.

https://sandboxie-plus.github.io/sandboxie-docs/Content/SandboxieIni.html#location

I still dont see it. Is it like hidden somewhere else?

isaak654 commented 1 year ago

I Don't see the .ini in the sandboxie Plus folder.

https://sandboxie-plus.github.io/sandboxie-docs/Content/SandboxieIni.html#location

I still dont see it. Is it like hidden somewhere else?

This is the relevant part: Sandboxie.ini location (source 1)

It is also mentioned when you open a new issue here: Sandboxie.ini location (source 2)

koopa990 commented 1 year ago

I Don't see the .ini in the sandboxie Plus folder.

https://sandboxie-plus.github.io/sandboxie-docs/Content/SandboxieIni.html#location

I still dont see it. Is it like hidden somewhere else?

This is the relevant part: Sandboxie.ini location (source 1)

It is also mentioned when you open a new issue here: Sandboxie.ini location (source 2)

Ohh, found it! must have slipped my mind.

Ok, I renamed the Original .ini; let sandboxie created the default file; and it turns out, it still does not work

isaak654 commented 1 year ago
  1. Attempted to launch both from the .exe inside of the folder AND launch through the Start Menu

This step is not clear to me.

Are you trying to run Discord in the sandbox, while at the same time it is running outside the sandbox?

koopa990 commented 1 year ago
  1. Attempted to launch both from the .exe inside of the folder AND launch through the Start Menu

This step is not clear to me.

Are you trying to run Discord in the sandbox, while at the same time it is running outside the sandbox?

well, I have my main discord running normally. you already know my full intention with this: have a secondary discord running to use alternative account on it

Troughy commented 1 year ago

For me after installing it, it launched, then after closing it I couldn't start it again. It worked a few days ago Edit: Ok, I got it to launch, I went into security options and enabled the "Make applications think they are running elevated" option, and just launched it from a sandboxed explorer

koopa990 commented 1 year ago

For me after installing it, it launched, then after closing it I couldn't start it again. It worked a few days ago Edit: Ok, I got it to launch, I went into security options and enabled the "Make applications think they are running elevated" option, and just launched it from a sandboxed explorer

No! That is still a NO for me-- not working yet

koopa990 commented 1 year ago

You know what. If there is no fixing this, I might as well use my browser instead of sandboxie.

TFWol commented 1 year ago

I have problems with Discord as well, but it's weird. It will run just fine after an initial installation, but will eventually stop working on subsequent starts. Box with Data Protection. It feels similar to the problem I had with #2529 except the mentioned folders are already created.

To get it to start I usually would need to run the installer again where it won't overwrite the existing installation, but will allow it to start.

I haven't looked too much into the problem though since I preoccupied with other stuff.

koopa990 commented 1 year ago

I have problems with Discord as well, but it's weird. It will run just fine after an initial installation, but will eventually stop working on subsequent starts. Box with Data Protection. It feels similar to the problem I had with #2529 except the mentioned folders are already created.

To get it to start I usually would need to run the installer again where it won't overwrite the existing installation, but will allow it to start.

I haven't looked too much into the problem though since I preoccupied with other stuff.

interesting...

NJT145 commented 10 months ago

This happened on me as well. and, when I copied content of AppData\Roaming\discord , it worked at first time, than stops working at second time. I thing it is something that must change in AppData\Roaming\discord , but can't because of Sandboxie limitations. Sandboxie developers need to investigate this very seriously...

MainCube commented 10 months ago

I have the same problem. When I Install the normal Discord and the Beta Version from Discord in the same sandbox, then I can sometimes open Discord (or the Beta Discord) also after the installation. But it´s random if it work or not.

koopa990 commented 10 months ago

I won't be returning to Sandbox until someone suggest a better solution

Yukai-Qian commented 9 months ago

I have Discord 1.0.9019 installed outside sandboxes. It would only work with Sandboxie if I do the following:

  1. Create a new Standard sandbox with all default settings
  2. In Discord: Settings > Advanced > Hardware Acceleration: Off (p.s. if you use a Application Compartment sandbox, you can keep hardware acceleration on, but Standard sandboxes do not work with hardware acceleration currently)
  3. In Sandboxie: Sandbox Options > Program Control > Force Programs, add folders: C:\Users\\\AppData\Local\Discord C:\Users\\\AppData\Roaming\discord In Resource Access > Files, add the same folders.
  4. Then, launch Discord through shortcuts generated by Discord during the installation. If you want to create a shortcut manually, go to the shortcut's Properties > Shortcut > Target, and make sure it says C:\Users\<username>\AppData\Local\Discord\Update.exe --processStart Discord.exe.

However, by doing so, when you launch Discord it always launches in the sandbox. If you want to launch a second instance outside the sandbox, you need to go to Sandbox Options, manually check the "Disable forced Process and Folder for this sandbox" under Forced Programs, launch Discord, and then un-check the box when you want to launch an instance in the sandbox again.