Author Topic: [3.9.9] TabColors  (Read 31177 times)

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
[3.9.9] TabColors
« on: December 18, 2013, 11:55:57 »
Thanks for the great new features Mathias.   8)

I played around with the tabs coloring & found that after a reboot it had all reverted to default.
Is this normal, have I missed a switch somewhere?  Or is it a bug?

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [3.9.9] TabColors
« Reply #1 on: December 18, 2013, 14:34:28 »
No it should remember it.

It reverted at reboot ? not just a restart of MultiCommander ?

What tab Colors did you change the default one for the tab in core settings or the custom tab color for a specific tab ?








Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: [3.9.9] TabColors
« Reply #2 on: December 18, 2013, 22:44:12 »
I changed some background colours on a few tabs using the new right-click/customize tabs option.  They were fine until the PC was cold-booted the next day.
MC has become an always on app for me so normally MC restarts tend to be reboots... ;)

I have now tried shutting down & restarting MC & the tabs do revert to default.  So it looks like any exit/start action loses the colour settings for me.  W7x64


« Last Edit: December 18, 2013, 22:46:47 by Ulfhednar »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [3.9.9] TabColors
« Reply #3 on: December 18, 2013, 23:44:39 »
That is strange.. I'm not able to recreate that. works for me what ever I do.

is the color settings saved when exiting ?

Portable  : <mcinstallpath>\SessionConfig\History\a4c2985d9c7e4035a3221cfd600171d0.ini  ??
or
Installed :  HKEY_CURRENT_USER\Software\MultiCommander\SessionHistory\a4c2985d9c7e4035a3221cfd600171d0\AutoLoad\ 0,1,2,3 and so on.. (tab num)





Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: [3.9.9] TabColors
« Reply #4 on: December 19, 2013, 09:49:22 »
When I edit the tabs they show the entries in the reg, after a shutdown they disappear...  AV sandboxing maybe?  But I gave MC full permissions, & it's in safe files etc. (Comodo IS)

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [3.9.9] TabColors
« Reply #5 on: December 19, 2013, 10:24:22 »
AV Sandboxing. hmm maybe.. never used anything like that.

If you name the tab in the Tab Properties dialog.. is the name also removed after restart of MC. ?

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: [3.9.9] TabColors
« Reply #6 on: December 19, 2013, 15:17:25 »
(Now on b1598) I cannot make the tabs retain any settings text or colour etc past a restart.

As regards the AV - I tried shutting down sandboxing - no effect.
Also if an item is whitelisted/excluded the REG shouldn't be virtualized for that app anyway. 

Other settings are OK - do core settings etc get entered to the REG in the same way? If yes, then, logically, the AV isn't blocking the tabs REG entries...assuming it is logical!
MC is always run in Admin mode so should have elevated rights.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [3.9.9] TabColors
« Reply #7 on: December 19, 2013, 16:08:53 »
(Now on b1598) I cannot make the tabs retain any settings text or colour etc past a restart.
Strange. There are no changes done with that.

As regards the AV - I tried shutting down sandboxing - no effect.
Also if an item is whitelisted/excluded the REG shouldn't be virtualized for that app anyway. 

Other settings are OK - do core settings etc get entered to the REG in the same way? If yes, then, logically, the AV isn't blocking the tabs REG entries...assuming it is logical!
Normal settings are stored in .xml files under account or in config folder.. Only "Session" settings is stored in the registry.


Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: [3.9.9] TabColors
« Reply #8 on: December 19, 2013, 20:21:26 »
Hmm so I need to double check if MC can (permanently) write to the REG somehow...

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: [3.9.9] TabColors
« Reply #9 on: December 21, 2013, 15:54:21 »
Using MC regedit functions only -

REG:\HKEY_CURRENT_USER\Software\MultiCommander\
I can add 0x000000 value keys that survive a restart - tried REG_SZ, DWORD & QWORD

If I manually add any key to the
REG:\HKEY_CURRENT_USER\Software\MultiCommander\SessionHistory\a4c2985d9c7e4035a3221cfd600171d0\AutoLoad\ (tab #)
(tab REG keys folders) they disappear on a restart.

I assume this means that MC can write to the REG but that for some reason ...\autoload is refusing to retain the entry. 
I suspect this would rule out AV activity as any REG activity should be flagged/restricted.  AV logs no events whilst I am making these entries.  It shouldn't be tree-depth dependent.

What else can I do to watch/test these events?

Could it be related to the tabbed_startup.INI that I'm using?
« Last Edit: December 21, 2013, 16:13:39 by Ulfhednar »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [3.9.9] TabColors
« Reply #10 on: December 21, 2013, 16:19:01 »
Could it be related to the tabbed_startup.INI that I'm using?

Yes.. loading tab settings from file will override the settings in the registry.

Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: [3.9.9] TabColors
« Reply #11 on: December 22, 2013, 01:01:16 »
Could it be related to the tabbed_startup.INI that I'm using?

Yes.. loading tab settings from file will override the settings in the registry.

Mystery solved (?)
So can I add color commands etc to the ini or is there some other work-around?
Maybe I can add all tab settings to the REG & forget the ini, or will that be over-ridden by last tab state?
(Maybe  can work with that tho.)

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [3.9.9] TabColors
« Reply #12 on: December 22, 2013, 11:18:00 »
Could it be related to the tabbed_startup.INI that I'm using?

Yes.. loading tab settings from file will override the settings in the registry.

Mystery solved (?)
So can I add color commands etc to the ini or is there some other work-around?
Maybe I can add all tab settings to the REG & forget the ini, or will that be over-ridden by last tab state?
(Maybe  can work with that tho.)

Since INI file are used override last state settings, So you always get the same settings on startup no matter what you done before you close.
And since customized tab color/name for a specific tab is a settings that belong to just that tab.. you need to insert that setting also in the ini file.


Ulfhednar

  • Contributor
  • VIP Member
  • *****
  • Posts: 514
    • View Profile
Re: [3.9.9] TabColors
« Reply #13 on: December 22, 2013, 12:53:52 »
Thanks mathias.
Could you tell what the syntax is for colours etc in the ini?
Do I just use ini lines like
Code: [Select]
TabColorBk=#A70000etc
as I see in the reg keys?
e.g. -
Code: [Select]
[PANEL_5]
Path=F:\
Side=L
SortCol=2
SortAsc=0
TabColorBk=#AAAAAA
TabColorText=#0D0D0D
TabColorGradient=1
TabColorHotWhenActive=1

Just checking before I nuke all my settings again  ;D

Are the tab settings in the reg exported during a MC Config backup?
I see I can export a reg key (so I can backup the REG:\HKEY_CURRENT_USER\Software\MultiCommander\SessionHistory\a4c2985d9c7e4035a3221cfd600171d0\AutoLoad\) Which is the most easy solution if MC doesn't backup these entries.

OT
Is it possible to make a key value copyable, as with a normal text/filename entry & F2.  Just wondering...it may be potentially useful as an MC interface asset.

Merry Xmas.
« Last Edit: December 22, 2013, 13:02:02 by Ulfhednar »

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4416
    • View Profile
    • Multi Commander
Re: [3.9.9] TabColors
« Reply #14 on: December 22, 2013, 13:05:27 »
It should be the same name as you see in the registry. Try that.

And no, the values in the registry are not included in the backup since they are not settings, They are only there to remember current/last state.