General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=JujuLand] Here is the content of my version that I have written there is a long time. It allows to automatically keep the location of Firefox, If the user wants to bypass it, he can change and uncomment a variable in the source, which can be opened in the system notepad by using a key (Ctrl-Alt-F or Shift-Alt-F, if the first one is already used, to be set manually in this case) The path declaration and the explanations: [code]# In case of manual install, registry keys can't be found and menu is grayed # To Bypass it, just fill the content of this variable the example value adapted # to your config # Example : # $_Firefox_Path="\"C:\\Program Files\\Mozilla Firefox\\firefox.exe\" %1" # You must restart K-Meleon to take the modifications # You have two shortcuts to modify this value: # CTRL+ALT+F when The command line is empty # SHIFT+ALT+F else $_Firefox_Path="C:\\Program Files\\Firefox_7.0b5_English_Portable\\FirefoxPortable.exe %1"; # The value you ought to use [/code] The function which allows the modification: [code]# ----- PRIVATE _Firefox_CommandLine{ # try to get Firefox's command line from the Windows Registry $__HKEY="HKCU"; $__data=readreg($__HKEY,"Software\\Mozilla\\Mozilla Firefox\\CurrentVersion"); $__data==""?$__HKEY="HKLM":0; $__data==""?$__data=readreg($__HKEY,"Software\\Mozilla\\Mozilla Firefox\\CurrentVersion"):0; $__data=readreg($__HKEY,"Software\\Mozilla\\Mozilla Firefox\\".$__data."\\Main\\PathToExe"); $__data==""?0:$__data=$__data." %1"; $_Firefox_CommandLine=$__data; $_Firefox_Path==""?0:$_Firefox_CommandLine=$_Firefox_Path; $_Firefox_CommandLine==""?setaccel("CTRL ALT F","macros(Firefox_Path)") : setaccel("SHIFT ALT F","macros(Firefox_Path)"); } [/code] I haven't verified that the actual registry key is the same that the one I used, but it seems not to be the part which is wrong for you, I Think you have missed the variable %1 in the string which, in fact is more then a path ... I think it ought to work. A+[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development