Extensions :  K-Meleon Forum
All about K-Meleon extensions. 
Pages: Previous1234
Current Page: 4 of 4
Re: macro troubleshoot_prefs (no change, only to check) (V5)
Posted by: siria
Date: December 15, 2017 08:21AM

Quote
siria
@rodocop
thanks, and is there anything unique in your Pro versions, that a macro could check via readfile perhaps? If a certain file exists, or a certain text inside? In readme? A pref? A skin pic? Or could also be something in omni.ja.

Quote
rodocop
Almost nothing.
Nothing what could be read through macro.
Just small kmeleonMain.js in components inside omni.ja

Hey, not true (luckily) grinning smiley Just did a search inside 76-Pro (the only version I've downloaded on disk), and "Pro" appears in several places! For the users themselves the Help>About page is most important, there it's in the title, although that's no use for this macro.
But you also have it in the RU-readme, AND in the accels.cfg, AND (the best!) in kmeleon.js! grinning smiley grinning smiley
Both as note (lots of "changed for KM Pro", and chapter header "K-Meleon Pro 76 added by rodocop") and as pref, for the window title:
pref("kmeleon.display.title", "K-Meleon 76 Pro");
(would also strongly wish this for every KM build, espially dev builds)

Now the big question is:
do all older builds contain "K-Meleon Pro " and rodocop in kmeleon.js?
Guess that would really be 100% waterproof "Pro" check.



Edited 1 time(s). Last edit at 12/15/2017 08:23AM by siria.

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: roytam1
Date: December 15, 2017 08:37AM

Quote
siria
While playing around with the goanna build, found that after manual deletion of startupCache, it's self-creating again at next start. And yet another start and the "4.little" reappears too again.
Have not yet tested the gecko builds.

The re-creating of startupCache is expected and needed by engine.
We don't need to prevent re-creating of startupCache, we just need deleting it when omni.ja is changed.

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: siria
Date: December 15, 2017 08:44AM

Is that "4.little" file important, or would it matter if it gets deleted regularly by macros/users...?

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: roytam1
Date: December 15, 2017 09:05AM

Quote
siria
Is that "4.little" file important, or would it matter if it gets deleted regularly by macros/users...?
it is generated from omni.ja files for faster loading.
if it is deleted, engine will re-read omni.ja files and regenerate it.

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: rodocop
Date: December 16, 2017 12:08AM

yes, it is constantly recreated.

But does contain some 'prefetched' data that should be cleaned off if some addition done.

You should remember that requirement to delete 2 dat-files in components folder of 1.x-branch when adding some extensions containing jar-files or new components.
They also were being recreated every time after deletion. The same thing here with startupCache.


Latest Release KM75.1 Latest dev KM76RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: KM-1.6db+NS © dugbugoffice // KM-16-S2014 © Fred // KM-1.6beta2.6 © JamesD // KM Twin+ © rodocop // KM 1.8.24.22 © adodupan

RECOMMENDED! K-Meleon 76 Pro ==» Download portable: 7zip or EXE =//= Discuss on forum
K-Meleon 75.1 Pro: Download =//= Discuss || Portable Flash plugin (x86/x64 DLLs)

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V5)
Posted by: rodocop
Date: December 16, 2017 12:34AM

Quote
siria
Now the big question is:
do all older builds contain "K-Meleon Pro " and rodocop in kmeleon.js?
Guess that would really be 100% waterproof "Pro" check.

Yes all KM Pro builds do contain strings 'KM Pro' or 'K-Meleon Pro 7[x] added by rodocop' in kmeleon.js at least.

Also every user should be able to see such a note in Preferences window:


And the window title also says - 'K-Meleon 7[x] Pro':



And the app icon is changed.


Latest Release KM75.1 Latest dev KM76RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: KM-1.6db+NS © dugbugoffice // KM-16-S2014 © Fred // KM-1.6beta2.6 © JamesD // KM Twin+ © rodocop // KM 1.8.24.22 © adodupan

RECOMMENDED! K-Meleon 76 Pro ==» Download portable: 7zip or EXE =//= Discuss on forum
K-Meleon 75.1 Pro: Download =//= Discuss || Portable Flash plugin (x86/x64 DLLs)



Edited 3 time(s). Last edit at 12/16/2017 12:39AM by rodocop.

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: siria
Date: December 16, 2017 02:03AM

Thanks roytam and rodocop.
That startupCache thing is now clear to me.

And for identifying "Pro", will go by checking the existence of "KM Pro" and "by rodocop" inside kmeleon.js smiling smiley (please don't change the exact spelling later, LOL!)



Edited 1 time(s). Last edit at 12/16/2017 02:24AM by siria.

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: anonymous
Date: December 17, 2017 05:48AM

@siria
It was roytam1 who tested your macro in his browser and K-MELEON VERSION was '0' there.

@roytam1
Couldn't find your patch for XP compatibility and compiled without it. Does this Gecko need patches to load the lav codec package?

Sometimes removing startupCache with browser cache was useful.
My older privacy kplugins auto-delete startupCache.4.little on shutdown and remove the directory to prevent re-creation after kplugin unload. There is no need to tell privacy kplugin to delete it on startup, because Gecko loads it before it loads kplugins.

Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: siria
Date: December 17, 2017 07:13AM

Quote
anonymous
It was roytam1 who tested your macro in his browser and K-MELEON VERSION was '0' there.

So it was just a misunderstanding.
He's using macro V5, still attached at first post (V6/7 isn't ready yet).
V5 was posted before addition of the version.ini check

Quote
roytam1
K-MELEON VERSION = 0 (from platform.ini)


Options: ReplyQuote
Re: macro troubleshoot_prefs (no change, only to check) (V6)
Posted by: anonymous
Date: December 17, 2017 08:06AM

@siria
A misunderstanding updated a number on GitHub:
#define KMELEON_VERSION 0x02030008

Options: ReplyQuote
Pages: Previous1234
Current Page: 4 of 4


K-Meleon forum is powered by Phorum.