xunxun1982/pcxfirefox — pull request #9 by Firef0x (2014-06-06 07:56:04+00:00)
Title: Feature Request: Support portable Vimperator/Pentadactyl extension

Olá!

Appreciate you and adonais for your work on making Firefox fully portable without any trick. However, I believe that it would be pretty good to make Vimperator/Pentadactyl extension portable. I consider that if the module 'tmemutil' can put the config files of Vimperator/Pentadactyl in the same folder of where the PortableDataPath directs and let Vimperator/Pentadactyl know where its config files lie in, it makes Vimperator/Pentadactyl portable along with Firefox.

So, I modified the module 'tmemutil-3rd' and added the feature. I added a key 'VimpPentaHome' in the file 'tmemutil.ini' to specify the path of the config files of Vimperator/Pentadactyl as follows.

```
;MOZ_NO_REMOTE为-no-remote的环境变量
;TmpDataPath为自定义临时文件路径(包括网页缓存与mozilla临时文件,需设置SafeEx=1)
;NpluginPath为自定义插件路径
;VimpPentaHome为自定义Vimperator/Pentadactyl的配置文件路径

[Env]
MOZ_NO_REMOTE=
TmpDataPath=
NpluginPath=
VimpPentaHome=

```

While the key 'VimpPentaHome' exists, the module tells the Vimperator/Pentadactyl extension where its config files are, so that it could load its config files correctly. The value can be either an absolute path (e.g. C:\Vimperator) or a relative path (e.g. Vimperator) . While we use the relative path such as 'Vimperator', it means the path is the sub-folder 'Vimperator' in the path of 'PortableDataPath'. In this way, we can bring the config files of Vimperator/Pentadactyl together with the profiles of Firefox and the Firefox program itself and use them across computers.

I have just tested the latest version of Vimperator/Pentadactyl (3.8.2 & 1.1), and it just works. I hope you will bring it as an alternative to 'tmemutil-3rd.dll' and pack the 3 modules ( tmemutil.dll, tmemutil-3rd.dll and tmemutil-vimp.dll) into your next 'pcxfirefox' release (Maybe 30.0?) so that some of the Vimperator/Pentadactyl users could choose to test it.

Many thanks and hope for your reply! Wish you a happy Children's Day and the Dragon Boat Festival!!!

====

Relative discussion:

http://bbs.kafan.cn/thread-1651432-18-1.html