Forum LiberKey


https://www.liberkey.com/forum/

HTML file association doesn't respect "replace default"

https://www.liberkey.com/forum/viewtopic.php?f=29&t=6047

Page 1 of 2

HTML file association doesn't respect "replace default"

PostPosted: 30 July 2012, 10:56
by wernight
Since recently, and on two machines using the same key, I had the same issue: The default web browser changed.

Normally I keep the default web browser and keep HTML file association for context menu choices. That work fine as none is "By default" and "Replace the current actions for this type of files" is not checked.

However now all HTML files and web links (e.g., Start > Run... > ) open the first browser associated for HTML files in LiberKey (even though it not marked to replace actions).

I had to delete the HTM/HTML association until this is solved.

edit by JP4U:
I've remove the link you've put in your message. It isn't necessary for a good comprehension of your problem.

Re: HTML file association doesn't respect "replace default"

PostPosted: 30 July 2012, 15:28
by JP4U
Hello.

Close your Liberkey and rename your L:\LiberKey\LiberKeyTools\KeyFileAssoc\KeyFileAssoc.xml (L is the name of your Liberkey's drive) in keyFileAssoc_old.xml for example.
Open L:\LiberKey\LiberKeyTools\KeyFileAssoc\bak . You must have files like L:\LiberKey\LiberKeyTools\KeyFileAssoc\bak\KeyFileAssoc_2012-07-11_13-14-12.xml .
Copy the most recent of them in L:\LiberKey\LiberKeyTools\KeyFileAssoc\ , then rename it in KeyFileAssoc.xml .
Restart your Liberkey.
Is the problem is solved ?

JP4U

Re: HTML file association doesn't respect "replace default"

PostPosted: 30 July 2012, 17:47
by wernight
I restored my oldest backup and no it doesn't solve anything. Actually those associations haven't changed.

Here are the relevant sections:

Code: Select all
      <FileType ext="html">
         <TypeDescription.en>HTML File (HyperText Markup Language)</TypeDescription.en>
         <TypeDescription.fr>Fichier HTML (HyperText Markup Language)</TypeDescription.fr>
         <Shell>
            <Action name="ouvrir_avec_google_chrome_liberkey">
               <Description.en>Open with Google Chrome (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Google Chrome (LiberKey)</Description.fr>
               <ExePath>%APPS%\Chrome\ChromeLKL.exe</ExePath>
               <AppName>Google Chrome</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="ouvrir_avec_chromium_liberkey">
               <Description.en>Open with Chromium (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Chromium (LiberKey)</Description.fr>
               <ExePath>%APPS%\Chromium\ChromiumLKL.exe</ExePath>
               <AppName>Chromium</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="mozilla_firefox_portable_edition">
               <Description.en>Open with Firefox (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Firefox (LiberKey)</Description.fr>
               <ExePath>%APPS%\Firefox\FirefoxLKL.exe</ExePath>
               <AppName>Firefox</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="ouvrir_avec_opera_liberkey">
               <Description.en>Open with Opera (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Opera (LiberKey)</Description.fr>
               <ExePath>%APPS%\Opera\OperaLKL.exe</ExePath>
               <AppName>Opera</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="ouvrir_avec_qtweb_liberkey">
               <Description.en>Open with QtWeb (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec QtWeb (LiberKey)</Description.fr>
               <ExePath>%APPS%\QtWeb\QtWebLKL.exe</ExePath>
               <AppName>QtWeb</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="open_with_gvim_portable_liberkey">
               <Description.en>Edit with gVim (LiberKey)</Description.en>
               <ExePath>%LBKROOT%\PortableApps\gVimPortable\gVimPortable.exe</ExePath>
               <AppName>gVim Portable</AppName>
               <CmdArgs>--remote-tab-silent &quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="ouvrir_avec_notepad_liberkey">
               <Description.en>Edit with Notepad++ (LiberKey)</Description.en>
               <Description.fr>Editer avec Notepad++ (LiberKey)</Description.fr>
               <ExePath>%APPS%\Notepad++\Notepad++LKL.exe</ExePath>
               <AppName>Notepad++</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
         </Shell>
      </FileType>
      <FileType ext="htm">
         <TypeDescription.en>HTML File (HyperText Markup Language)</TypeDescription.en>
         <TypeDescription.fr>Fichier HTML (HyperText Markup Language)</TypeDescription.fr>
         <Shell>
            <Action name="ouvrir_avec_google_chrome_liberkey">
               <Description.en>Open with Google Chrome (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Google Chrome (LiberKey)</Description.fr>
               <ExePath>%APPS%\Chrome\ChromeLKL.exe</ExePath>
               <AppName>Google Chrome</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="ouvrir_avec_chromium_liberkey">
               <Description.en>Open with Chromium (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Chromium (LiberKey)</Description.fr>
               <ExePath>%APPS%\Chromium\ChromiumLKL.exe</ExePath>
               <AppName>Chromium</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="mozilla_firefox_portable_edition">
               <Description.en>Open with Firefox (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Firefox (LiberKey)</Description.fr>
               <ExePath>%APPS%\Firefox\FirefoxLKL.exe</ExePath>
               <AppName>Firefox</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="ouvrir_avec_opera_liberkey">
               <Description.en>Open with Opera (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Opera (LiberKey)</Description.fr>
               <ExePath>%APPS%\Opera\OperaLKL.exe</ExePath>
               <AppName>Opera</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="ouvrir_avec_qtweb_liberkey">
               <Description.en>Open with QtWeb (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec QtWeb (LiberKey)</Description.fr>
               <ExePath>%APPS%\QtWeb\QtWebLKL.exe</ExePath>
               <AppName>QtWeb</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="edit_with_gvim_portable_liberkey">
               <Description.en>Edit with gVim (LiberKey)</Description.en>
               <ExePath>%LBKROOT%\PortableApps\gVimPortable\gVimPortable.exe</ExePath>
               <AppName>gVim Portable</AppName>
               <CmdArgs>--remote-tab-silent &quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="edit_with_notepad_liberkey">
               <Description.en>Edit with Notepad++ (LiberKey)</Description.en>
               <ExePath>%APPS%\Notepad++\Notepad++LKL.exe</ExePath>
               <AppName>LiberKey Launcher - Notepad++</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
         </Shell>
      </FileType>
      <FileType class="HTTP" urlprotocol="yes">
         <TypeDescription.en>URL : HyperText Transfer Protocol (HTTP)</TypeDescription.en>
         <TypeDescription.fr>URL : Protocole HyperText Transfer (HTTP)</TypeDescription.fr>
         <Shell>
            <Action name="open_with_google_chrome_liberkey">
               <Description.en>Open with Google Chrome (LiberKey)</Description.en>
               <Description.fr>Ouvrir avec Google Chrome (LiberKey)</Description.fr>
               <ExePath>%APPS%\Chrome\ChromeLKL.exe</ExePath>
               <AppName>LiberKey Launcher - Google Chrome</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="open_with_chromium_liberkey">
               <Description.en>Open with Chromium (LiberKey)</Description.en>
               <ExePath>%APPS%\Chromium\ChromiumLKL.exe</ExePath>
               <AppName>LiberKey Launcher - Chromium</AppName>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
            </Action>
            <Action name="open_liberkey">
               <ExePath>%APPS%\Firefox\FirefoxLKL.exe</ExePath>
               <CmdArgs>&quot;%1&quot;</CmdArgs>
               <Description.en>Open with Firefox (LiberKey)</Description.en>
            </Action>
         </Shell>
         <TypeDescription>URL : Protocole HyperText Transfer (HTTP)</TypeDescription>
      </FileType>


Putting Firefox on top of the Actions list for the HTM and HTML type (not the http:// URL) will change make Start > Run... > www.example.com open via portable Firefox.

Re: HTML file association doesn't respect "replace default"

PostPosted: 30 July 2012, 18:36
by JP4U
Have-you directly checked a default browser in it when you are using it?
It can have modified the registry parameters in Windows without the KFA actions.

A similar problem was solved here for Firefox : http://www.liberkey.com/fr/forums/support-fr/resolu-firefoxlkl-exe-comme-navigateur-par-defaut-2121.html.
Sorry, it's in the french section of the forum and now I've don't the time to translate, but with Google translation, for example, you'll probably can understand messages.

JP4U

Re: HTML file association doesn't respect "replace default"

PostPosted: 30 July 2012, 19:35
by wernight
No problem with French (I'm French).

The default is working fine once I disable LiberKey association. Once enabled it seems that my default Chrome is replaced by LiberKey Chrome and I cannot even select the installed Chrome.

LiberKey association enabled:
HKEY_CURRENT_USER\Software\Classes\HTTP\shell\open\@default = "Open with Chrome (LiberKey)"
HKEY_CURRENT_USER\Software\Classes\HTTP\shell\open\command\@default = LiberKey Chrome
HKEY_CURRENT_USER\Software\Classes\HTTP\shell\open_liberkey\@default = LiberKey Chrome

LiberKey association disabled:
HKEY_CURRENT_USER\Software\Classes\HTTP\shell\open\@default = (value not set)
HKEY_CURRENT_USER\Software\Classes\HTTP\shell\open\command\@default = Installed Chrome

I guess that means that LiberKey didn't detect a default HTML browser even though there is one.

Re: HTML file association doesn't respect "replace default"

PostPosted: 31 July 2012, 11:23
by wernight
Without access to the source code I cannot help much further. I'm not sure what is wrong as most extensions association work fine. There seem to be some kind of link between the protocol and the file extension association here. :ninja:

Re: HTML file association doesn't respect "replace default"

PostPosted: 31 July 2012, 11:31
by Dji
Under KFA, for the HTTP association, please check you don't have the option "replace the current actions for this type of files" checked.

Re: HTML file association doesn't respect "replace default"

PostPosted: 31 July 2012, 12:44
by wernight
Dji wrote:Under KFA, for the HTTP association, please check you don't have the option "replace the current actions for this type of files" checked.

That doesn't solve: It still tries to open the LiberKey Chrome (instead of the default locally installed Chrome). That's to be expected from "replace the current actions for this type of files".

Re: HTML file association doesn't respect "replace default"

PostPosted: 31 July 2012, 16:35
by Dji
I confirm the issue for protocols (http, https, and probably all others) whatever the browser.

As a workrounded solution, I would recommed you to add a new action on the top of the others for http(s) protocols which link to %ProgramFiles%\Internet Explorer\iexplore.exe

Re: HTML file association doesn't respect "replace default"

PostPosted: 01 August 2012, 10:27
by wernight
Cheers, I'll try that until a patch is released.

PS: It's quiet possibly broken by the recent browser fix.