Sandbox settings to [GlobalSettings]

Discussion in 'Sandboxie (SBIE Open Source) Plus & Classic' started by Mr.X, Oct 30, 2022.

  1. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,814
    Location:
    .
    I was thinking in order to reduce repetitive lines on each sandbox, to move such lines to GlobalSettings.
    This will reduce the number of lines in all my sandboxes when reading the ini file, I have a lot of them. Hence I got two main questions.

    [Q1]
    Do the following lines/settings have effect when moved to [GlobalSettings]?
    Code:
    ConfigLevel=9
    AutoRecover=n
    AutoDelete=y
    ClosePrintSpooler=y
    CopyLimitKb=-1
    ClosedFilePath=X:
    ClosedFilePath=D:\Desktop\SecureFolder
    OpenFilePath=%Desktop%
    BreakoutProcess=FirefoxPortable.exe
    UseFileDeleteV2=y
    UseRegDeleteV2=y
    
    [Q2]
    If so, how to reflect its global influence on every sandbox?
    The settings is global but needs to be reflected (or not?) on every sandbox Options gui

    I ask cause I tried these two in GlobalSettings
    Code:
    ClosedFilePath=D:\Desktop\SecureFolder
    OpenFilePath=%Desktop%
    
    and they actually work on every sandbox. However they are not reflected on every sandbox gui Options > Resources > Files tab
     
    Last edited: Oct 31, 2022
  2. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    423
    Q1: I don't think it will be a problem except Enabled setting.

    Q2: Yes, some of the global settings are not reflected in the UI even though they work, some may recreated with changes in the box settings. Check "Show Templates" to see them in the resource tab.
     
  3. Glitzersternchen

    Glitzersternchen Registered Member

    Joined:
    Sep 5, 2021
    Posts:
    46
    Location:
    Germany
    I find the question of Mr.X very interesting .
    Could the following box entries probably also be moved to the "Global Settings" so that they then apply to all boxes, or do some not work then ?
    Many Thanks, Sabine

    AllowBoxedJobs=y
    AllowNetworkAccess=<BlockNetAccess>,n
    AllowSpoolerPrintToFile=y
    AutoDelete=y
    BlockNetworkFiles=y
    BoxNameTitle=y
    ClosedFilePath=!<InternetAccess>,InternetAccessDevices
    ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
    ClosedIpcPath=!<StartRunAccess>,*
    ConfigLevel=9
    DropAdminRights=y
    NotifyStartRunAccessDenied=y
    OpenSmartCard=n
    Template=BlockPorts
     
  4. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,814
    Location:
    .
    Yes you're right, I tinkered with this one and it forcibly has to be set per sandbox.

    Yes now I see the ones related to paths (File/Folder)
    Code:
    ClosedFilePath=X:
    ClosedFilePath=D:\Desktop\SecureFolder
    OpenFilePath=%Desktop%
    
    The next nice part is if I need access on certain sandboxes to let say, to my SecureFolder on desktop, then I add a line to that sandbox ini
    Code:
    OpenFilePath=D:\Desktop\SecureFolder\
    
    It works and gets reflected in the sandbox gui

    Now if for any reason I need to rapidly revert and close such path without deleting the line, then I just untick the setting from the gui and get a line in the ini file
    Code:
    OpenFilePathDisabled=D:\Desktop\SecureFolder\
    
    Great, I can toggle such setting without issues from the gui and not having to edit the ini file.
     
  5. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,335
    Location:
    Viena
    Pretty much everything can be moved to the global section,
    I would not do that for Enabled=y though

    But there is also a more convenient way of achieving a similar result, create a local template move the lines there and include that in every box, then you can edit the template using the UI
     
  6. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,814
    Location:
    .
    Thank you, and those edits/changes apply per sandbox?
     
  7. DavidXanatos

    DavidXanatos Developer

    Joined:
    Sep 6, 2006
    Posts:
    2,335
    Location:
    Viena
    if you edit the local template the changes will apply to all sandboxes which include that template
     
  8. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,814
    Location:
    .
    I'm having issues adding a custom template via GUI
    Watch this video and see
    https://streamable.com/99das3
    I don't know.
    Done. I think you're right so I deleted it on the other thread and you may do the same ;)
     
    Last edited: Jan 22, 2023
  9. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    Done. Thanks for the heads-up.
    I wonder if your "Template=Mr.X" should be "Template_Local=Mr.X" and set up as a local template? Just a thought.
     
  10. busy

    busy Registered Member

    Joined:
    Apr 10, 2006
    Posts:
    423
    Yes, you should add Local_ to custom templates.

    Code:
    [Template_Mr.X] -> [Template_Local_Mr.X]
    
    Template=Mr.X -> Template=Local_Mr.X
     
  11. Mr.X

    Mr.X Registered Member

    Joined:
    Aug 10, 2013
    Posts:
    4,814
    Location:
    .
    @soccerfan and @busy adding Local to the name did it. Thanks a lot! I wonder when it became mandatory or it always were like that.
     
  12. soccerfan

    soccerfan Registered Member

    Joined:
    Oct 15, 2007
    Posts:
    561
    It's been this way since at least v3.x (tzuk's days :))
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.