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

DefaultBox keeps resurrecting itself (unlike Classic) #2445

Closed
NewKidOnTheBlock opened this issue Nov 9, 2022 · 20 comments
Closed

DefaultBox keeps resurrecting itself (unlike Classic) #2445

NewKidOnTheBlock opened this issue Nov 9, 2022 · 20 comments
Labels
Feature Request New feature or idea Status: Added in Next Build Added in the next Sandboxie version User Interface Related to Plus and/or Classic UIs

Comments

@NewKidOnTheBlock
Copy link
Contributor

NewKidOnTheBlock commented Nov 9, 2022

Describe what you noticed and did

The DefaultBox keeps coming back - even if you've got other boxes and deleted DefaultBox on purpose.

Reproduction steps:

  • Start with fresh Sandboxie Plus
  • Create a couple of sandboxes
  • Remove DefaultBox

zombie box from hell1

  • Shut down Sandboxie from tray menu

zombie box from hell2

  • Restart Sandboxie
    -> DefaultBox resurrects itself!

zombie box from hell3

How often did you encounter it so far?

Always, if following reproduction steps

Affected program

Not relevant

Download link

Not relevant

Where is the program located?

Not relevant to my request.

Expected behavior

Having a DefaultBox is a good thing for beginners, who just installed Sandboxie so that they may get going straight away.
But if you already have a couple of sandboxes and deleted the DefaultBox on purpose, it should not be created anew each time you open the main Sandboxie window.

Possible solution: Check if at least 1 sandbox exists. If true, do not create a new DefaultBox.

PS: Classic handles this correctly and doesn't resurrect DefaultBox if you got other sandboxes.

What is your Windows edition and version?

Windows 10 Pro 21H2 64-bit

In which Windows account you have this problem?

Not relevant to my request.

Please mention any installed security software

Microsoft Defender

What version of Sandboxie are you running?

Sandboxie Plus 1.5.2

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?

Not relevant to my request.

Can you reproduce this problem on an empty sandbox?

Not relevant to my request.

Did you previously enable some security policy settings outside Sandboxie?

No response

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

No response

@NewKidOnTheBlock NewKidOnTheBlock added the Confirmation Pending Further confirmation is requested label Nov 9, 2022
@offhub
Copy link
Collaborator

offhub commented Nov 9, 2022

Atm there is no way to delete DefaultBox, but you can disable it.
[DefaultBox]
Enabled=n

@NewKidOnTheBlock NewKidOnTheBlock changed the title Zombie DefaultBox keeps resurrecting itself DefaultBox keeps resurrecting itself Nov 9, 2022
@NewKidOnTheBlock
Copy link
Contributor Author

NewKidOnTheBlock commented Nov 9, 2022

Ah, thanks for the tip.
Somehow Classic manages to handle this as expected.
When I deleted DefaultBox in Classic, it didn't come back.

@APMichael
Copy link
Contributor

This is an intended behavior:

You just have to edit the ini and change the line Enabled=y to Enabled=n. (As offhub had already written.)

@ghost
Copy link

ghost commented Nov 9, 2022

It could make some sense if sbie config file didnt exist when user installed it for the first time. Otherwise I dont see any point

@NewKidOnTheBlock
Copy link
Contributor Author

NewKidOnTheBlock commented Nov 9, 2022

Yes, it's useful for starters or people who have 0 sandboxes.
But it shouldn't be coming back again and again if you have set up a couple custom boxes and want it gone.

@paradoxicallist
Copy link

Yes, it's useful for starters or people who have 0 sandboxes. But it shouldn't be coming back again and again if you have set up a couple custom boxes and want it gone.

Fwiw, I'd like to say I concur with this idea. I hate when Default Box resurrects itself.

@bastik-1001
Copy link
Collaborator

There is a function that seems to reply on the DefaultBox being present.

Always DefaultBox

The good thing is, one can change the settings of DefaultBox, without those being altered, as far as I encountered. One may just not use it, if custom boxes fulfill the needs instead.

@NewKidOnTheBlock
Copy link
Contributor Author

NewKidOnTheBlock commented Nov 9, 2022

Good catch. I was gonna write about that next.
select0r

IMHO there should be a way to declare one box to be your standard go-to box in the 'Run Sandboxed' menu.

E.g. I got 2 default boxes. One without internet access (which I always try to use first) and one with internet access (if the sandboxed program refuses to work or requires internet by design).

@typpos
Copy link
Contributor

typpos commented Nov 16, 2022

Duplicate of #487 ? Also discussed in #359 item 12.

The DefaultBox is required because some features depend on it. For example:

"C:\Program Files\Sandboxie-Plus\Start.exe"  notepad.exe

References in code:

@isaak654 isaak654 added Feature Request New feature or idea and removed Confirmation Pending Further confirmation is requested labels Nov 18, 2022
@isaak654 isaak654 changed the title DefaultBox keeps resurrecting itself DefaultBox keeps resurrecting itself (unlike Classic) Nov 18, 2022
@isaak654 isaak654 added the User Interface Related to Plus and/or Classic UIs label Nov 18, 2022
@ghost
Copy link

ghost commented Nov 18, 2022

Ok, so maybe we should have custom variable DefaultBoxName=YourCustomDefaultBox

@NewKidOnTheBlock
Copy link
Contributor Author

NewKidOnTheBlock commented Nov 24, 2022

Yeah, or some setting where you can declare one box to be your Number 1.
There already exists an option to rearrange the order.
So the sandbox on top of the list = Primary Box.

@gettysburg
Copy link

I would also appreciate an option to rename the default, auto-created Sandbox.

@DavidXanatos
Copy link
Member

With regard to an other feature request https://github.com/sandboxie-plus/Sandboxie/discussions/2157 how about adding said perhaps its time to add the discussed name alias feature,
Allowing to set a display name of a sandbox while leaving the actual name as is,
this way the "DefaultBox" could be renamed to whatever without actually renaming it hence without running into it being re created.

On the other hand a Config value to set the name of DefaultBox sounds also nice.

@DavidXanatos DavidXanatos added the Status: Added in Next Build Added in the next Sandboxie version label Dec 7, 2022
@DavidXanatos
Copy link
Member

in next build it will be possible to set a custom sandbox as the default box

@gettysburg
Copy link

it will be possible to set a custom sandbox as the default box

Great solution, thank you for your time and work.

@paradoxicallist
Copy link

in next build it will be possible to set a custom sandbox as the default box

How is this done cause I tried yesterday renaming DefaultBox to a different name next I copy ini lines from another box to this new one, next restarted the computer and DefaultBox resurrected.

@DavidXanatos
Copy link
Member

there will be a setting in the globa section holding the name of the designated DefaultBox

@offhub
Copy link
Collaborator

offhub commented Dec 8, 2022

After Sandboxie-Plus 1.6.1

From UI:

Options > Global Settings > Advanced Config > Sandbox Config > Default sandbox: <Select from the dropdown menu>

From INI:

[GlobalSettings]
.
.
.
DefaultBox=SelectedDefaultBox

@NewKidOnTheBlock
Copy link
Contributor Author

NewKidOnTheBlock commented Dec 8, 2022

@offhub @paradoxicallist I don't think it's in yet. At least it isn't mentioned in the 1.6.1 changelog.

@DavidXanatos
Copy link
Member

you need to wait for 1.6.1b or later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request New feature or idea Status: Added in Next Build Added in the next Sandboxie version User Interface Related to Plus and/or Classic UIs
Projects
None yet
Development

No branches or pull requests

9 participants