portable.ini expamle:
compatible tete009's tmemutil.ini file
;SafeEx --Security Enhancements ( 0 Disabled; 1 Enabled ) ;Portable --Portable Mode ( 0 Disabled; 1 Enabled ) ;EnableWhiteList --Enable Process White List ( 0 Disabled; 1 Enabled ) ;CreateCrashDump --Create DMP file when crashing ( 0 Disabled; 1 Enabled ) ;Bosskey --Whether to enable the boss key ( 0 Disabled; 1 Enabled ) ;ProcessAffinityMask --Process balance ( 0 Disabled; 1 Enabled ) [General] SafeEx=1 Portable=1 EnableWhiteList=0 PortableDataPath=../profiles CreateCrashDump=0 ProcessAffinityMask=0 Bosskey=1 ProxyExe= ;Support for environment variables ;TmpDataPath --Custom Temp File Directory ;NpluginPath --Custom Plugin Path ;VimpPentaHome --Vimperator/Pentadactyl's home Directory [Env] TmpDataPath= NpluginPath= VimpPentaHome= ;Process white list (should be no more than 16), support wildcard ; (;) is the comment symbol. [whitelist] Path1=C:\Program Files\Internet Explorer\iexplore.exe ;Path2=C:\Windows\System32\rundll32.exe ;Path3=*xThunder.exe ;Path4=*opentext22.dll ;Path5=*WordStrokeHelper32.dll ;Path6=*AM32-*.dll ;Path7=*CLCLHook.dll ;Path8=C:\WINDOWS\system32\cmd.exe ;Path9= ;Path10= ;When Bosskey=1, the section is in effect. If the keys following set is wrong or no set, ;the default boss key is Ctrl+Shift+~ ;Hotkey Settings must be the Decimal format of Virtual Key Codes, divided by "+" ;for example, 02+192 is on behalf of Ctrl+~,02+04+188 is on behalf of Ctrl+Shift+, [attach] CpuUse=25 Hotkey=02+192 ExPath="%windir%\system32\cscript.exe ../run.vbs,0"
configuration references:
variable switch and the white list:
when SafeEx=1,The security module intercept the 3rd party DLL loading,and the external non GUI programs running and some of the risk of underlying API calls.
并且会对JAVA 和SMARTPDF插件进行注入保护.
如果你不知道为什么要这样做,请设置 SafeEx=0 (设置为1会带给你更多的困惑).
如果你一定要启用安全模块,请留意 [whitelist] 区段下的白名单说明,下面是一些网友可能会遇到的问题.
1)为什么我的xThunder扩展不能调用迅雷下载了?
需要删除 ;Path7=*xThunder.exe 条目前面的;符号.
2)为什么我的奶牛不能在firefox或Iceweasel上不起作用了?
需要删除 ;Path10=AM32-.dll 条目前面的;符号,并确认firefox或Iceweasel进程加入了过滤选项.
3)为什么我的有道词典不能屏幕取词了?
需要删除 ;Path9=*WordStrokeHelper32.dll 条目前面的;符号.
4)为什么我的灵格斯词典不能屏幕取词了?
需要删除 ;Path8=*opentext22.dll 条目前面的;符号.
5)为什么我的CLCL剪贴板不能工作了?
需要删除 ;Path11=*CLCLHook.dll 条目前面的;符号.
6)为什么我的批处理调用不能运行了.
需要删除 ;Path12=C:\WINDOWS\system32\cmd.exe 条目前面的;符号.
7)什么我的解雇ie Internet选项打不开?
这是因为你开启了 EnableWhiteList=1 的缘故(最严格的安全控制),
这时候你需要删除 ;Path6=C:\Windows\System32\rundll32.exe 条目前面的;符号.
8)为什么Strokeit鼠标手势不起作用了?
请设置 SafeEx=0 .
或者把它的dll文件加入白名单,例如:
Path9=E:\soft\StrokeIt\mhook.dll
9) 一些未知的为什么 等等..........
请设置 SafeEx=0 .
ProxyExe开关变量:
启动外部进程, 进程路径设置在 [attach] 区段下的 ExPath 关键值.
ProcessAffinityMask开关变量:
实现了所谓的进程平衡功能,cpu占用率的阀值设置在[attach] 区段下的 CpuUse 关键值.
当cpu的总使用率到达这个值时,自动调整主进程与插件进程的cpu优先级为低标准.
注意,只有当浏览器不在前台工作时才进行这样的调整.
used the bosskey(the virtual keycode):
Constant name HEX DEC The button MOD_ALT 0x1 1 ALT key MOD_CONTROL 0x2 2 CONTROL key MOD_SHIFT 0x4 4 SHIFT key MOD_WIN 0x8 8 WIN key VK_0到VK_9 0x30-0x39 48-57 0_9键 VK_A到VK_Z 0x41-0x5A 65-90 A_Z键 VK_F1到 VK_F12 0x70-0x7B 112-123 F1_F12键