[MacPorts] #67991: apcupsd @3.14.14_2: Should not autostart

MacPorts noreply at macports.org
Sat Aug 19 22:31:25 UTC 2023


#67991: apcupsd @3.14.14_2: Should not autostart
-------------------------+-------------------------
  Reporter:  ryandesign  |      Owner:  stephenreay
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.8.1
Resolution:              |   Keywords:
      Port:  apcupsd     |
-------------------------+-------------------------

Comment (by ryandesign):

 Actually I see the launching of the app that creates the menu item is a
 separate thing that was
 [changeset:67689d9749bc58f05ac26dd27628e32af4f33fcb/macports-ports just
 added to the port today] with this code in the post-activate block:

 {{{
    # Start the Agent so the LoginItem is added
    system "open ${applications_dir}/apcagent.app"
 }}}

 so please remove that as well. And I see based on the comment and by
 confirming on the buildbot machines that this has added an entry to the
 user's login items. So please figure out how to programmatically remove
 that from the login items again, and add that code to the portfile too,
 probably hooked up to both `port unload` and `port deactivate`. Ports
 should not be changing the user's computer settings.

 Remember to ensure that `sudo port load apcupsd` starts whatever needs to
 be started and that `sudo port unload apcupsd` stops whatever was started.
 We don't want a port's programs still running after the port has been
 unloaded, deactivated, or uninstalled.

-- 
Ticket URL: <https://trac.macports.org/ticket/67991#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list