Closed secure411dotorg closed 10 years ago
It now has a configuration setting system-command=
that can execute any command on keypress assigned to letter o
. It is parsed the same way as they key and the hover text. It is possible to use it to execute any program, not just a browser. It is highly recommended that the browser or other system command is configured with an absolute path to avoid executing an unexpected application. 68de85dfc013aea8ae4286e4695453c50953fcdf
Have not yet tried this with Chrome on Mac but it looks like it could be the best way: http://stackoverflow.com/questions/6200756/run-mac-chrome-with-command-line-arguments-as-a-background-process
I did try this with Firefox on the Mac and it tends to hang. If I used an arg about Profile, the first use of it would let me choose a profile and work without hanging. The second time it offered a profile and then said it can't use the same profile, its already in use (default was the only profile). I suspect something like the Chrome solution above is needed or more researching into what is needed for Firefox on Mac. I tried many combinations of no args and the args shown, firefox or firefox-bin:
system-command=/Applications/Firefox.app/Contents/MacOS/firefox-bin -safe-mode -new-tab http://zonecruncher.com/tools/ns_hosts_on_ip.cfm?ip=${b3}.${b4}.${b5}.${b6}
Is this system-command option going to be split into the main conf file and the formatting of the URL it opens be in the text section, --load-text-config file?
0f409c362676eb118fa42d6686a3de0dfe0626f3 https://github.com/secure411dotorg/mal4s/wiki/Customizing-Actions
https://gist.github.com/rodrigoalvesvieira/662e400f34dd9de38176
http://stackoverflow.com/questions/17347950/open-url-from-c-code
Ideally make the URL configurable from the conf file with ability to insert ${FIELDn} s within the URL. Ideally support multiple URLs containing fields, defined for different keys, all defined in the conf file.