Mactype: Selecting a profile in MacTray doesn't change profile

Created on 8 Nov 2018  ยท  37Comments  ยท  Source: snowie2000/mactype

It seems like changing the profile from MacTray doesn't work, you have to use the Wizard.

To repro:

  1. Use Standalone or Compatibility Modes
  2. Right click MacTray, select a different profile
  3. Re-open Cent Browser, Explorer, etc

Expected outcome:

  • New profile is rendered

Observed outcome:

  • Profile is the same

All 37 comments

Check the mactype.ini file and see if the value of key AlternativeFile is changed accordingly.

No it's not changing

Did you run MacTray as Administrator? It is typically because of the permission problem.

No, but I'm using the new installer, so I have Modify privs on MacType.ini

On Thu., 8 Nov. 2018, 15:08 snowie2000 <[email protected] wrote:

Did you run MacTray as Administrator? It is typically because of the
permission problem.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/snowie2000/mactype/issues/474#issuecomment-436871121,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADJINt0n_YgWE6-TjIulxf2oQRTJdHIpks5us7VXgaJpZM4YTuTM
.

Yes it works running MacTray as Administrator ... Just not as a User. I can't see any reason it shouldn't work running as User though.

Yes it works running MacTray as Administrator ... Just not as a User. I can't see any reason it shouldn't work running as User though.

I think you only gave sufficient permission to administrators, but as a non-elevated process, it has only at most power user privilege.

Yes however my point is User now has permission to change MacType.ini, so why wouldn't it work as User?

Try to give full control to everyone. that's how I solve the problem every time it doesn't work with specific user privilege

Tested, no that didn't work either. It's not a permissions problem, MacTray.exe doesn't actually try to write MacType.ini when it's not running as Administrator...

Running as User - has an 'open if' condition which fails within MacType.exe and doesn't attempt an actual write:
image
So I think it's conditionally failing in code (via exception handling), not because of actual file permissions.

Running as Administrator - here's the write:
image

Yes, I do have a permission checking here. Can you give the file full control to everyone and try again?
Thanks.

I already did that, it made no difference

On Mon., 12 Nov. 2018, 12:00 snowie2000 <[email protected] wrote:

Yes, I do have a permission checking here. Can you give the file full
control to everyone and try again?
Thanks.

โ€”
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/snowie2000/mactype/issues/474#issuecomment-437726090,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADJINgO_RLQgGFl-FleBGT15JK1400cIks5uuM9IgaJpZM4YTuTM
.

Okay, so I'm wondering if you start CentBrowser as administrator in Registry mode, will it able to hook into its child processes?

Just tested Cent Browser (Administrator) in Registry Mode after a clean reboot - nope, no change. So weird!

@sammilucia Does it still happen after you freshly installed the new version? I tried with my Windows 10 VM, and it looks nothing wrong with profile switching without administrator privilege.

@snowie2000 will check shortly

@snowie2000 It seems to be working when MacTray is run from MacWiz. When you run it manually though (in non-admin mode), the profiles don't change.

Please use process monitor to see which file to Mac tray is writing to.

I think the Mactype.ini is virtualize to to another folder because of the UAC. When you run elevated the virtualization is disabled.

It's the same as my comment above (https://github.com/snowie2000/mactype/issues/474#issuecomment-437652480) MacTray doesn't actually attempt to write to MacType.ini unless it's running as Administrator

The problem will only occur if a user manually launches MacType from the icon. One other workaround is that the installer sets MacTray to run as Administrator always...

It shouldn't be done this way as some users don't have the administrator privilege, and windows with UAC turned on doesn't allow applications that require elevation to run at startup (unless via task schedule).

Yes I know ... But that doesn't mean users won't run it manually and then find they're not able to change profiles...

The problem is that it looks like you are the only one facing the problem so far.

@sammilucia Try this one. It gives you some message boxes on profile switching.
MacTray-debug.zip

I do have a tendency to find weird bugs.

You clicked a menu item
You chose C:\Program Files\MacType\ini\extratype.ini
Writing string ini\extratype.ini to file C:\Program Files\MacType\MacType.ini
The operation completed successfully
Reloading

And it worked! Looks like adding debug code fixed the problem ๐Ÿ˜‚

WTF.....
You're not alone, I fixed many bugs by only adding logs. ๐Ÿ˜๐Ÿ˜๐Ÿ˜

MacTray-debug-log2.zip

Okay, so only one log left. See if it still works.

Yep it's still working.

I didn't replace MacType64.dll - did you want me to?

No, definitely not. It's really weird.
I'm gonna remove every log see if the "log method" magically fixed the problem.

MacTray-debug-nolog.zip
Here you go. The moment of truth.

What did you change? ๐Ÿ˜Š

It's working! You'll probably tell me you didn't change anything ๐Ÿ˜‚

Exactly what am I going to say.

Lol aaarrrrggghh!!

On Sun, 9 Dec 2018 at 20:33, snowie2000 notifications@github.com wrote:

Exactly what am I going to say.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/snowie2000/mactype/issues/474#issuecomment-445524580,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADJINvxCTvWtLORHQXGH9i7pfWrSA8mdks5u3N_agaJpZM4YTuTM
.

Did you forget to set your compatibility property back of the mactray app.

No it's not using compatibility, it's just running as user.

On Sun, 9 Dec 2018 at 20:39, snowie2000 notifications@github.com wrote:

Did you forget to set your compatibility property back of the mactray app.

โ€”
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/snowie2000/mactype/issues/474#issuecomment-445524913,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADJINqdMoVKd8WVNKX8swWq9KLXRpOMRks5u3OFDgaJpZM4YTuTM
.

So what should we say to this bug? Solved? Vanished? TBD?

Close as could not reproduce! (Aka - @snowie2000 secretly fixed it without admitting to it ๐Ÿ˜‚)

Was this page helpful?
0 / 5 - 0 ratings