sandboxie-plus / Sandboxie

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

Open With not working in sandboxed explorer instance #1138

Open davi-ro opened 3 years ago

davi-ro commented 3 years ago

Describe the bug Open with functionality not working with sandboxie, sandboxie can not open the "Open with" dialog.

To Reproduce Steps to reproduce the behavior:

  1. In an sandboxed explorer instance when trying to right click on a file and choosing "Open With" nothing happens. You can not use open with function to run something sandboxed
  2. Even if you open an instantce of explorer unsandboxed and go to a sandboxed file, for example let's say "c:\Sandbox\Usr\DefaultBox\D\file.docx" when you try to open the file normally it would open it sandboxed in the default app assigned to open that file type, but if you right click and choose "open with" and than another program that can open that file, that program will open unsandboxed even though that file is in a sandbox and should open sandboxed.

Expected behavior The Open With dialog should appear and show the apps that can open that file type, and after selecting an app, that app should run sandboxed.

System details and installed software (please provide the following information):

DavidXanatos commented 3 years ago

I am afraid that this issue is for the time being not resolvable. The Open With dialog is in modern windows 10 versions a modern APP.

And Sandboxie does not support Modern/UWP APPs, only normal win32 programs

So if I ever add UWP support this issue will be fixed for free, until I don't this issue is not fixable properly.

I could look into the possibility of somehow intercepting the start attempt of the Open With App possibly i can catch it and start some own replacement dialog.

davi-ro commented 3 years ago

Ok, ty, understood. I've tried openwith enhanced (it's an alternative to the default open with dialog in windows, and the only alternative i could find) but in my tests in a windows 10 vm it crashes when showing the apps, although sandboxie catches it and auto sandboxes the rundll32.exe that calls the app.

DavidXanatos commented 3 years ago

oh awsome, there is already an app for that :D I'll check it out asap...

EDIT: for me this open with also not work unsandboxed, i.e. it just closed after a second, but that does not mather, now i know how to integrate an own open with handler, so i only need to write one, lol

DavidXanatos commented 2 years ago

will be in 1.0.6 (workaround introduced in commit https://github.com/sandboxie-plus/Sandboxie/commit/f85991b4c9e54ab4cc3c2301ad96a9fd77a22587).


[!NOTE]
Issue reopened on Jul 15, 2024 due to the following discussion: #3589