Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View CourtJesterG's full-sized avatar

Richard Shawn Faust CourtJesterG

View GitHub Profile
@CourtJesterG
CourtJesterG / macdockiconhandler
Created February 20, 2014 04:14
Trying to build a coin wallet for MAC OS X
#include "macdockiconhandler.h"
#include <QtGui/QMenu>
#include <QtGui/QWidget>
extern void qt_mac_set_dock_menu(QMenu*);
#undef slots
#include <Cocoa/Cocoa.h>

$PATH in MacOSX 10.7

MacOSX has a truly global path setting that precedes any other setting like ~/.bash_profile. The file /private/etc/paths is a list of pathnames. The order from top to bottom defines the resulting order in the $PATH variable. After loading /private/etc/paths there is a directory /private/etc/paths.d/ with files in the same style. Those are appended to the $PATH variable.

The default content of /private/etc/paths looks like this:

/usr/bin

/bin