How to make Direct Folders work inside sandbox?

If it's not about a problem in the program
Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Fri Dec 25, 2015 1:39 pm

Hi,

Does anyone now how to do this, how do I need to configure SBIE? To give some more info, it's a tool to enhance file-boxes, you can for example auto-size them, and sort folders on type or date. I want to make Direct Folders work for sandboxed apps.

http://www.codesector.com/directfolders

Thanks,

Rasheed

Craig@Invincea
Sandboxie Support
Sandboxie Support
Posts: 3523
Joined: Thu Jun 18, 2015 3:00 pm
Location: DC Metro Area
Contact:

Re: How to make Direct Folders work inside sandbox?

Post by Craig@Invincea » Fri Dec 25, 2015 2:03 pm

Usually, these sort of programs don't play well inside of a SB.

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Fri Dec 25, 2015 2:18 pm

Craig@Invincea wrote:Usually, these sort of programs don't play well inside of a SB.
Yes I know, but often you can make them work with some extra configuration.

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 620
Joined: Fri Nov 13, 2015 4:11 pm

Re: How to make Direct Folders work inside sandbox?

Post by Syrinx » Fri Dec 25, 2015 2:40 pm

I started trying to create a template but ran into something of a dead end. I'm not sure how to find out the needed Window stuff as there is something blocked but not being shown in the resource access monitor.
Long story short, you can get most of the features to work by adding * to 'Window Access' under Resource Access but it's not a solution I'd recommend.

Update:
Instead of using the *, try these, it doesn't save sandboxed browsing locations on Windows 7 x64 but allows you to use locations you've navigated to outside of the sandboxed program or added manually in DF. Strangely enough it saves the folder history well on Windows XP :-/ Dunno what that's about.
-Snipped-

Update2:

Think I got it, finally. It wasn't sandboxie blocking anything after all, the program just needed the original window names! Give this a shot.

Code: Select all

[Template_DirectFolders]

Tmpl.Title=Direct Folders
Tmpl.Class=Misc
Tmpl.Scan=s
Tmpl.ScanFile=%APPDATA%\Direct Folders
OpenWinClass=$:df.exe
OpenWinClass=#
Goo.gl/p8qFCf

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Sat Dec 26, 2015 11:02 am

Syrinx wrote:
Think I got it, finally. It wasn't sandboxie blocking anything after all, the program just needed the original window names! Give this a shot.

Code: Select all

[Template_DirectFolders]

Tmpl.Title=Direct Folders
Tmpl.Class=Misc
Tmpl.Scan=s
Tmpl.ScanFile=%APPDATA%\Direct Folders
OpenWinClass=$:df.exe
OpenWinClass=#
Thanks, will check it out. :D

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Mon Dec 28, 2015 1:34 pm

Syrinx wrote:
Think I got it, finally. It wasn't sandboxie blocking anything after all, the program just needed the original window names! Give this a shot.
Call me stupid, but I need more help. Where should I add this template? I have tried to modify the SBIE config files, but it didn't work. I'm almost certain I'm doing something wrong.

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 620
Joined: Fri Nov 13, 2015 4:11 pm

Re: How to make Direct Folders work inside sandbox?

Post by Syrinx » Tue Dec 29, 2015 1:02 am

In my testing I added it directly to the sandboxie.ini as this allows the template to be available in general ([just like my MBAE template]active for every sandbox with a generic entry like those available from the default template.ini)/eg global. For testing (and a more secure setup) or specific setups however you can add it as a local template to a single box via the GUI Sandbox Settings > Applications > Local > Add
Goo.gl/p8qFCf

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Tue Dec 29, 2015 12:30 pm

Syrinx wrote:In my testing I added it directly to the sandboxie.ini as this allows the template to be available in general ([just like my MBAE template]active for every sandbox with a generic entry like those available from the default template.ini)/eg global.
I have now done it, and I do see it showing up in the "all applications" list. I have selected it (+), but it still doesn't work? Perhaps I should reboot my system.

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 620
Joined: Fri Nov 13, 2015 4:11 pm

Re: How to make Direct Folders work inside sandbox?

Post by Syrinx » Wed Dec 30, 2015 12:26 am

hmm I really thought I had it, it if it showed up in the compatibility section of SBIE with a [+] (eg enabled) after adding the template, it really should have had a noticeable difference the next time you launched a new app in the sandbox [it might not do so if the program/sandbox was already in use while adding the template or refreshing the ini ] as sandboxie isn't built for live (in-use) refreshes/changes like that). Maybe it's just something I missed or it could be something on the OS side or maybe another product, a tweak? Hard to say. I only tested XP and 7 x64, so can you let me know which OS's are you using these together on so I can check it again there to see [PM is fine] how it handles in a new VM?
Goo.gl/p8qFCf

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Wed Dec 30, 2015 12:00 pm

Syrinx wrote:hmm I really thought I had it, it if it showed up in the compatibility section of SBIE with a [+] (eg enabled) after adding the template, it really should have had a noticeable difference the next time you launched a new app in the sandbox...
You're the man, it now does work. I thought it didn't work because some apps use their own file box, and apparently Direct Folders can't control them, also not outside the sandbox. But on the standard file box it does work, so thanks again. :)

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Tue Jan 05, 2016 2:31 pm

@ Syrinx

I need your help again, because I encountered something weird. If the Direct Folders template is active, then XnView refuses to run sandboxed. In other words, when I open an image from inside the sandbox, XnView can not be started. As soon as I remove the template, all is fine again. Do you have any idea what might be causing this? :?

http://www.xnview.com/en/xnview/

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 620
Joined: Fri Nov 13, 2015 4:11 pm

Re: How to make Direct Folders work inside sandbox?

Post by Syrinx » Tue Jan 05, 2016 4:26 pm

I'll try to take a look and see if I can figure out a resolution but my first suspicion was that it had something to do with the OpenWinClass=# line
OpenWinClass=#

This setting tells Sandboxie to not alter window class names created by sandboxed programs. Normally, Sandboxie translates class names such as IEFrame to Sandbox:DefaultBox::IEFrame in order to better separate windows that belong to sandboxed programs from the rest of the windows in the system.

However, in some cases, a program outside the sandbox might expect window class names to have a specific name, and therefore might not recognize the windows created by a sandboxed program. Specifying OpenWinClass=# resolves this problem, at the cost of a lesser degree of separation.

Note that OpenWinClass=# does not allow communication with any windows outside the sandbox, and may interfere with some drag-and-drop operations
but so far I can't reproduce the issue.
Goo.gl/p8qFCf

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Sun Jan 10, 2016 3:00 pm

Syrinx wrote:I'll try to take a look and see if I can figure out a resolution but my first suspicion was that it had something to do with the OpenWinClass=# line
but so far I can't reproduce the issue.
Thanks for checking, but it's really weird. It also happens in sandboxes without any restrictions. And with the "open with" feature, XnView does open, but unsandboxed. But so do all other apps, so I'm guessing this is normal behavior. I have no problems with Media Player Classic and ExtractNow, they both do open on double click of a file. It doesn't make any sense.

Syrinx
Sandboxie Guru
Sandboxie Guru
Posts: 620
Joined: Fri Nov 13, 2015 4:11 pm

Re: How to make Direct Folders work inside sandbox?

Post by Syrinx » Sun Jan 10, 2016 4:47 pm

I just re-checked trying all types of things and can't get it to show me a single issue. I had notes about other lines I had thought of adding to the template before but they didn't seem to be needed so I left them out. Maybe they'd help to get it working for you and xnview? If it still doesn't work, go ahead and revert to the other template, the less stuff opened up by it the better.

Code: Select all

[Template_DirectFolders]

Tmpl.Title=Direct Folders
Tmpl.Class=Misc
Tmpl.Scan=s
Tmpl.ScanFile=%APPDATA%\Direct Folders
OpenWinClass=$:df.exe
OpenWinClass=*DUIViewWndClassName*
OpenWinClass=*_DefView
OpenWinClass=#
Goo.gl/p8qFCf

Rasheed187
Posts: 216
Joined: Sat Jan 14, 2006 11:08 am

Re: How to make Direct Folders work inside sandbox?

Post by Rasheed187 » Wed Jan 13, 2016 3:08 pm

Syrinx wrote:I just re-checked trying all types of things and can't get it to show me a single issue. I had notes about other lines I had thought of adding to the template before but they didn't seem to be needed so I left them out. Maybe they'd help to get it working for you and xnview? If it still doesn't work, go ahead and revert to the other template, the less stuff opened up by it the better.
I think it will remain a mystery, with the new template it also doesn't work. I've also tried to force XnView in several sandboxes, but when both of these templates are active, SBIE will refuse to run XnView, while other apps do load correctly. I really hate these problems that don't make any sense. :x

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest