Opened 3 years ago

Closed 11 months ago

#56801 closed defect (fixed)

Incorrect path when opening emacs through the application icon

Reported by: amicitas Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.5.3
Keywords: Cc:
Port: emacs-app

Description (last modified by amicitas)

emacs-app @26.1_3

When opening Emacs through the /Applications/MacPorts/, the PATH environment is incorrect. Rather than using the macports path, the default system path is used.

If I run Emacs from a terminal window by typing the command /Applications/MacPorts/, the path environment is ok.


M-! which ssh -> /opt/local/bin/ssh


M-! which ssh -> /usr/bin/ssh

This problem does not exist in emacs-app @25.3_0; after activating that older version the paths is correct. The problem exists in both @26.1_2 and @26.1_3 (other versions not tested).

Change History (5)

comment:1 Changed 3 years ago by mf2k (Frank Schima)

Owner: set to drkp
Status: newassigned

In the future, please use WikiFormatting and add the port maintainer(s) to Cc (port info --maintainers emacs-app), if any.

comment:2 Changed 3 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 Changed 3 years ago by amicitas

Description: modified (diff)

comment:4 Changed 2 years ago by amicitas

Adding the following lines to resolves this issue:


(Tested with emacs-app-devel @20181216)

comment:5 Changed 11 months ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed

In f5a69de6dfd04007491e3b8ef5c0dd817456f42d/macports-ports (master):

emacs-app(-devel): set PATH when starting app to include MacPorts prefix

Stop using a separate revision for emacs and emacs-app to simplify the

Closes: #56801

Note: See TracTickets for help on using tickets.