Author Topic: Avast! For mac... 10.6.... bizarre problem! HELP!  (Read 13247 times)

0 Members and 1 Guest are viewing this topic.

VirtuaMcPolygon

  • Guest
Avast! For mac... 10.6.... bizarre problem! HELP!
« on: September 20, 2009, 12:58:30 PM »
My reg'ed copy of avast (latest version) worked fine under 10.5.

I've upgraded to 10.6 and expected some software to have bugs or not work until there upgraded, but avast! on my mac has a really annoying one.

Every time I boot up it loads up the avast! Panel thing with SCAN NOW, SCAN volume buttons etc.

But if i try to quit, force quit it automatically reloads the Avast! software panel again! No matter what I do!!!

I guess the next version of mac avast! will fix this but is there a workaround?

HELP!

Anyone! Bueller! Anyone!

Offline .: Mac :.

  • Avast √úberevangelist
  • Ultra Poster
  • *****
  • Posts: 5093
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #1 on: September 20, 2009, 09:31:43 PM »
This is the intended behavior. Open the avast preferences and uncheck "Launch on startup as a persistent application" and you will be able to close the program
"People who are really serious about software should make their own hardware." - Alan Kay

VirtuaMcPolygon

  • Guest
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #2 on: September 20, 2009, 11:46:49 PM »
I've tried that. It comes up with the cancel or quit and relaunch window. Regardless if i try to turn it on or off it still loads.

Also it always remains unchecked!? when i try to tick it or untick it.

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #3 on: September 21, 2009, 02:30:10 PM »
I've tried that. It comes up with the cancel or quit and relaunch window. Regardless if i try to turn it on or off it still loads.

Also it always remains unchecked!? when i try to tick it or untick it.

Nope, it must reflect the current state. when it doesn't accept ticking and remains unticked, then there's some problem with adding the launchd's list. you can verify it using launchctl utility (argument list - the relevant file is /Application/avast!.app/Contents/Resources/com.avast.MacAvast.plist)

regards,
pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

VirtuaMcPolygon

  • Guest
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #4 on: September 21, 2009, 10:44:04 PM »
I have no idea how to use launchctl. tried it from a terminal window to no avil looking at the .plist.

Any idea which command i need to use....

http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/launchctl.1.html
« Last Edit: September 21, 2009, 10:46:49 PM by VirtuaMcPolygon »

kentbigdog

  • Guest
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #5 on: September 21, 2009, 10:54:32 PM »
I have this same problem with 10.6.1. The Persistent checkbox is always unchecked even though it is in persistent mode. This means you can't take it out of persistent mode. I also don't know anything about launchctl. I'm an iMac user right? That means I don't program and love user friendly!

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #6 on: September 22, 2009, 09:37:11 AM »
I have this same problem with 10.6.1. The Persistent checkbox is always unchecked even though it is in persistent mode. This means you can't take it out of persistent mode. I also don't know anything about launchctl. I'm an iMac user right? That means I don't program and love user friendly!

Hall, try this:
go to /applications/avast!.app (ctrl-click, show package contents in finder), then Contents/Resources. Here's the com.avast.MacAvast.plist. Just edit the file, and change the first <key> from "Enabled" to "Disabled". Then, reboot the computer.

Btw. avast can be quit any time as any other application, using option+apple+esc "force-quit" dialog. Of course, when launchctl still thinks it's persistent, it will start it again,. Thus, reboot or reloading (launchctl unload path_to_the_edited_plist or launchctl unload -w path_to_the_original_plist would do the same job) will be necessary here.

regards,
pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

VirtuaMcPolygon

  • Guest
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #7 on: September 22, 2009, 10:10:32 PM »
It was already set as disabled. I tried setting it to enable saving.. reboot and then setting to disabled again .. saving...

reboot..

the same.  ???

VirtuaMcPolygon

  • Guest
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #8 on: September 22, 2009, 10:11:24 PM »
can i force it to create a log file or something for you to look at?

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #9 on: September 23, 2009, 12:20:29 PM »
can i force it to create a log file or something for you to look at?

the problem is unfortunately not at our side, but on MacOS side (where they repeatedly fail to keep compatibility even with their own latest "inventions").
in this case, it's launchctl utility that fails to manipulate the plist properly (effect of the former -w switch).

Could you do: launchctl unload <path_to_the_avasts_plist> ?

After this, avast shouldn't be started again by launchd (launchd is an intended replacement for old good init/cron daemon suite, root of all evil). When doing the same launchctl unload with '-w' switch, nothing is written back to the plist file (as before 10.6), but is stored elsewhere on disc (/private/var/db/launchd.db/com.apple.launchd/overrides.plist).

So, next version will have to use fourth invocation style (not startup items, not login items, not launchd with modified plist, but plist overrides). Developing for MacOS is "fun"
.
regards,
pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

VirtuaMcPolygon

  • Guest
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #10 on: September 23, 2009, 11:08:21 PM »
Thank you!  :D

that worked.


VirtuaMcPolygon

  • Guest
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #11 on: September 24, 2009, 09:17:52 AM »
Speak to soon  :o

I'm able to quit it if i do the launchctl unload  command. And it stops it reloading automatically.

Starts autoloading and the same issue of not being able to quit it again on reboot.

bhah.. :(

I think i will uninstall it and wait for the next version. I think the probability of getting  virus from now to the next release will be quite slim.

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: Avast! For mac... 10.6.... bizarre problem! HELP!
« Reply #12 on: September 29, 2009, 12:02:42 PM »
Speak to soon  :o

I'm able to quit it if i do the launchctl unload  command. And it stops it reloading automatically.

Starts autoloading and the same issue of not being able to quit it again on reboot.

bhah.. :(

I think i will uninstall it and wait for the next version. I think the probability of getting  virus from now to the next release will be quite slim.
Hallo,
seems like a bug in 10.6 - launchctl state doesn't persist, and also, launchctl tries to start app even when in reboot-process.
Similar bug was present in all 10.4 systems, where launchd was unable to track sessions (and was trying to start an application even when its owner was logged out). We'll have to intruduce another dirty hack, as it seems :(.

regards,
pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)