Trust No Program
This topic is locked: you cannot edit posts or make replies.
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
demoneye, right, I made a mistake there, should be SharedAccount\Data\mbookmark* rather than just SharedAccount\mbookmark*. Will be fixed in the next beta version.

_________________
tzuk
View user's profileSend private message
From Templates.ini file
Guest10


Joined: 27 Apr 2008
Posts: 4345
Location: Ohio, USA
Reply with quote
From Templates.ini:
#
# SeaMonkey
#

[Template_SeaMonkey_Force]
Tmpl.Title=#4323,SeaMonkey
Tmpl.Class=WebBrowser
ForceProcess=firefox.exe

_________________
Paul
XP Pro SP3 (Admin rights), Zone Alarm Pro Firewall, Malwarebytes Pro, Firefox 21, Thunderbird 17
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
demoneye, your most recent comment has moved here:

http://www.sandboxie.com/phpbb/viewtopic.php?t=5169

Guest10 -- thanks, fixed!
View user's profileSend private message
demoneye


Joined: 21 Jan 2008
Posts: 188
Reply with quote
tzuk wrote:
demoneye, your most recent comment has moved here:

http://www.sandboxie.com/phpbb/viewtopic.php?t=5169

Guest10 -- thanks, fixed!


hehe , start thinking where my post gone Smile

10x tzuk u are the best! Very Happy
View user's profileSend private message
demoneye


Joined: 21 Jan 2008
Posts: 188
Reply with quote
tzuk wrote:
demoneye, right, I made a mistake there, should be SharedAccount\Data\mbookmark* rather than just SharedAccount\mbookmark*. Will be fixed in the next beta version.


and the3.35.19 fix that Wink

10x tzuk
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
This application template works:
Code:
[Template_Local_LastPass_Vista]

Tmpl.Title=LastPass (Vista)
Tmpl.Class=Local
OpenFilePath=firefox.exe,%USERPROFILE%\AppData\LocalLow\LastPass\*_icons3.lps
OpenFilePath=firefox.exe,%USERPROFILE%\AppData\LocalLow\LastPass\*_lp.act.lps
OpenFilePath=firefox.exe,%USERPROFILE%\AppData\LocalLow\LastPass\*_lppri.lps
OpenFilePath=firefox.exe,%USERPROFILE%\AppData\LocalLow\LastPass\*_lps.act.xml


while this one does not, the files end up in the sandbox:
Code:
[TemplateSettings]

Tmpl.Browser=firefox.exe

[Template_Local_LastPass_Vista]

Tmpl.Title=LastPass (Vista)
Tmpl.Class=Local
OpenFilePath=%Tmpl.Browser%,%USERPROFILE%\AppData\LocalLow\LastPass\*_icons3.lps
OpenFilePath=%Tmpl.Browser%,%USERPROFILE%\AppData\LocalLow\LastPass\*_lp.act.lps
OpenFilePath=%Tmpl.Browser%,%USERPROFILE%\AppData\LocalLow\LastPass\*_lppri.lps
OpenFilePath=%Tmpl.Browser%,%USERPROFILE%\AppData\LocalLow\LastPass\*_lps.act.xml


Same result on XP and Vista.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
EDIT: above does NOT work on XP (tested again), same behavior on both OS's.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
wraithdu wrote:
while this one does not, the files end up in the sandbox:


Right. Expandable variables (template variables or any other kind) are not expanded in the program name part (i.e. before the comma). Earlier today I suggested that this might work -- you may have seen it in the topic for application configuration ideas -- so it turns out that I was wrong.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
Yes I did see that topic, which was why I tried it. Any plans to allow variables for the program name?
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
One more question...I noticed now that there is a [TemplateSettings] section in both Sandboxie.ini and Templates.ini (previously only in Sandboxie.ini). Is this on purpose? Does one take precedence over the other if identical template variables are found? The current beta has Tmpl.Firefox and Tmpl.RoboForm in both INI's with the same settings.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
Although there have only been a few releases of Sandboxie with application configurations, the "old" way was putting template variables in Sandboxie.ini, and the "new" way has the default values in Templates.ini (like Tmpl.Firefox) and only the overrides/alternates (like Tmpl.Firefox.user) in Sandboxie.ini.

In other words, you can safely discard any duplicates you have in Sandboxie.ini.

wraithdu wrote:
Any plans to allow variables for the program name?


I think it might be easily possible, but I have to check.
View user's profileSend private message
wraithdu


Joined: 29 Jun 2007
Posts: 1410
Reply with quote
Can you briefly explain how the alternate folder locations work? I see the entry created in Sandboxie.ini, but I'm not sure how it's used. Thanks!
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
For a template variable %Tmpl.Whatever%, Sandboxie checks if your [TemplateSettings] section contains

Tmpl.Whatever.YourUserName=value

If that is not found, it checks for

Tmpl.Whatever=value

And if that is not found, it complains about missing variables and aborts the new process.

With the recent change that I described earlier, Sandboxie Control now only manages the Tmpl.Whatever.UserName variables in [TemplateSettings] in Sandboxie.ini. While the [TemplateSettings] in Templates.ini specifies the default/standard locations.
View user's profileSend private message
Guest10


Joined: 27 Apr 2008
Posts: 4345
Location: Ohio, USA
Reply with quote
In regard to the above description of alternate folder location, if I understand correctly:
If templates.ini defines
[TemplateSettings]
Tmpl.Firefox=%AppData%\Mozilla\Firefox\Profiles\*

and sandboxie.ini defines
[TemplateSettings]
Tmpl.Firefox.user1=C:\Profiles\Firefox\Profile1

then if user1 is the one logged in: the %Tmpl.Firefox% variable will take on the value that's been assigned to Tmpl.Firefox.user1 in sandboxie.ini - but only for those places where %Tmpl.Firefox% is used in sandboxie.ini (and not in those templates that are defined in templates.ini).
tzuk wrote:
Templates that are defined in templates.ini will still use the default value for that variable, and are not affected by the alternate folder selection in sandboxie.ini
Doesn't this mean that if the user wants to use templates that are pre-defined in templates.ini, and yet use the alternate folder location that is specified in sandboxie.ini, that he would have to create "Local" templates in sandboxie.ini that duplicate those that are already defined in templates.ini?
In which case, the values of the variables used in the local templates would have the value that's defined by the alternate folder location setting in sandboxie.ini - instead of the default value, as defined in templates.ini.

Then instead of going to Applications/Web Browser, where the default templates with their default values will be listed, the user will have to go to Applications/Local in order to 'Add' these Local templates to his configuration file.
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15003
Reply with quote
Guest10 wrote:
. . . but only for those places where %Tmpl.Firefox% is used in sandboxie.ini (and not in those templates that are defined in templates.ini).


No, the [TemplateSettings] sections from both configuration files are merged into a single [TemplateSettings] section in memory, so it doesn't matter where the Tmpl.Whatever variable is defined.

For my "official" templates, I am now putting the default folder locations in Templates.ini, rather than have Sandboxie Control write them into Sandboxie.ini, which is what I initially did. This change in behavior is going to make it easier for me to create new templates without having to update Sandboxie Control with new template variables. So it has nothing to do with the mechanism of templates, it's just a convenience for me.

As for alternate locations (i.e. per-user template variables), those are still written in Sandboxie.ini, because Template.ini should not be modified.

For your own templates, you should put all your template variables in Sandboxie.ini, whether they are global or per user.

I hope that clarifies everything now.

wraithdu wrote:
Yes I did see that topic, which was why I tried it. Any plans to allow variables for the program name?


Yes, that will be available in the next beta version.

And in response to a point raised by soccerfan . . .

tzuk wrote:
I can perhaps tweak it a bit so if remove a "Local" application configuration, and it is no also associated to any other sandbox, then Sandboxie Control offers to delete this template completely.


That's also going to be in the next beta version.
View user's profileSend private message
New in 3.35.15: Application configurations
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 4 of 5  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,177,712 times since June 2004