mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
7d705ed1bd
The big problem with making an OS X application out of a GTK program is that it won't start unless DYLD_LIBRARY_PATH and several other environment variables point at all the GTK machinery. So your app bundle has to contain two programs: a launcher to set up that environment, and then the real main program that the launcher execs once it's done so. But in our case, we also need pterm to start subprocesses _without_ all that stuff in the environment - so our launcher has to be more complicated than the usual one, because it's also got to save every detail of how the environment was when it started up. So this is the launcher program I'm going to use. Comments in the header explain in more detail how it'll work. Also in this commit, I add the other end of the same machinery to gtkapp.c and uxpty.c: the former catches an extra command-line argument that the launcher used to indicate how it had munged the environment, and stores it in a global variable where the latter can pick it up after fork() and use to actually undo the munging.
154 lines
1.8 KiB
Plaintext
154 lines
1.8 KiB
Plaintext
*.o
|
|
*.pyc
|
|
.dirstamp
|
|
.deps
|
|
/*.pdb
|
|
/*.ilk
|
|
/*.res
|
|
/*.RES
|
|
/*.pch
|
|
/*.rsp
|
|
/*.obj
|
|
/*.exe
|
|
/*.ncb
|
|
/*.plg
|
|
/*.dsw
|
|
/*.opt
|
|
/*.dsp
|
|
/*.tds
|
|
/*.td2
|
|
/*.map
|
|
/Makefile.bor
|
|
/Makefile.cyg
|
|
/Makefile.vc
|
|
/Makefile.lcc
|
|
/MSVC
|
|
/*.log
|
|
/*.GID
|
|
/local
|
|
/Output
|
|
/pageant
|
|
/plink
|
|
/pscp
|
|
/psftp
|
|
/putty
|
|
/puttytel
|
|
/puttygen
|
|
/pterm
|
|
/puttyapp
|
|
/ptermapp
|
|
/osxlaunch
|
|
/fuzzterm
|
|
/testbn
|
|
/*.DSA
|
|
/*.RSA
|
|
/*.cnt
|
|
/*.hlp
|
|
/.bmake
|
|
/build.log
|
|
/build.out
|
|
/uxconfig.h
|
|
/empty.h
|
|
/config.status
|
|
/Makefile.am
|
|
/Makefile.in
|
|
/Makefile
|
|
/compile
|
|
/config.status
|
|
/configure
|
|
/stamp-h1
|
|
/aclocal.m4
|
|
/ar-lib
|
|
/autom4te.cache
|
|
/depcomp
|
|
/install-sh
|
|
/local
|
|
/missing
|
|
/uxconfig.in
|
|
/uxconfig.h
|
|
/licence.h
|
|
/*.a
|
|
/charset/sbcsdat.c
|
|
/contrib/cygtermd/cygtermd.exe
|
|
/doc/*.html
|
|
/doc/*.txt
|
|
/doc/*.cnt
|
|
/doc/*.hlp
|
|
/doc/*.gid
|
|
/doc/*.GID
|
|
/doc/*.chm
|
|
/doc/*.log
|
|
/doc/*.1
|
|
/doc/*.info
|
|
/doc/vstr.but
|
|
/doc/*.hhp
|
|
/doc/*.hhc
|
|
/doc/*.hhk
|
|
/doc/licence.but
|
|
/doc/copy.but
|
|
/icons/*.pam
|
|
/icons/*.png
|
|
/icons/*.ico
|
|
/icons/*.icns
|
|
/icons/*.xpm
|
|
/icons/*.c
|
|
/macosx/Makefile
|
|
/macosx/*.app
|
|
/macosx/puttygen
|
|
/macosx/plink
|
|
/macosx/psftp
|
|
/macosx/pscp
|
|
/testdata/bignum.txt
|
|
/unix/Makefile.gtk
|
|
/unix/Makefile.ux
|
|
/unix/Makefile.local
|
|
/unix/empty.h
|
|
/unix/plink
|
|
/unix/pterm
|
|
/unix/putty
|
|
/unix/puttytel
|
|
/unix/psftp
|
|
/unix/pscp
|
|
/unix/puttygen
|
|
/unix/stamp-h1
|
|
/unix/*.log
|
|
/unix/.deps
|
|
/windows/*.pdb
|
|
/windows/*.ilk
|
|
/windows/*.res
|
|
/windows/*.RES
|
|
/windows/*.pch
|
|
/windows/*.rsp
|
|
/windows/*.obj
|
|
/windows/*.exe
|
|
/windows/*.ncb
|
|
/windows/*.plg
|
|
/windows/*.dsw
|
|
/windows/*.opt
|
|
/windows/*.dsp
|
|
/windows/*.tds
|
|
/windows/*.td2
|
|
/windows/*.map
|
|
/windows/Makefile.bor
|
|
/windows/Makefile.cyg
|
|
/windows/Makefile.vc
|
|
/windows/Makefile.lcc
|
|
/windows/MSVC
|
|
/windows/DEVCPP
|
|
/windows/VS2010
|
|
/windows/VS2012
|
|
/windows/*.log
|
|
/windows/*.GID
|
|
/windows/local
|
|
/windows/Output
|
|
/windows/*.DSA
|
|
/windows/*.RSA
|
|
/windows/*.cnt
|
|
/windows/*.hlp
|
|
/windows/.bmake
|
|
/windows/*.sln
|
|
/windows/*.suo
|
|
/windows/*.msi
|
|
/windows/*.wixobj
|
|
/windows/*.wixpdb
|