5digits / dactyl

Pentadactyl and other related Gecko extensions
Other
469 stars 98 forks source link

set home is not work #22

Open wideweide opened 9 years ago

wideweide commented 9 years ago

when start: -pentadactyl "++cmd 'js services.environment.set(''HOME'', ''S:\MyPentadactyl'')'" but when :scriptnames,the js is not loaded.

inkarkat commented 9 years ago

I think I've run into the same / related issue. Just upgraded from Firefox 36 to 37.0.1 and with it from Pentadactyl build 20150227 to build 20150412, and after restarting noticed that my ~/.pentadactylrc isn't loaded any more!

I have defined the $HOME environment variable (on Windows 7/x64) to point to another directory outside my Windows user's home, and Pentadactyl previously correctly located my ~/.pentadactylrc. Now, it doesn't; :scriptnames shows no scripts have been sourced. The env.var is correctly accessible from Firefox; :echo services.environment.get("HOME") yields the correct directory.

I'm able to workaround this via the following redirector script, but would appreciate it if this regression is fixed. Thanks!

,----[ C:\Users\inkarkat\.pentadactylrc ]----
| source D:/A/.pentadactylrc
`----
mMontu commented 8 years ago

The problem still exists on build 20160719.xpi. I find the redefinition of the %HOME% variable very useful as I use FirefoxPortable on a usb stick; currently it is necessary to place redirection files on the hosts, not only for .pentadactylrc but for ~/.pentadactyl/plugins.