Gimp/app
Jehan 566be5e986 app: do not use PATH_MAX and realpath() on macOS.
See the comments in MR!424.
Basically realpath relies on false assumptions (probably ones which used
to be true when the API got created) on the max size of a path. Actually
nowadays paths can be much bigger than what the macro advertizes or can
even be unbounded.
The Linux version of realpath() allows the second parameter to be NULL,
in which case it would allocate the buffer, exactly for this reason
(written in the BUGS section on the man). Unfortunately this behavior is
not standardized in POSIX and the man from Apple I found does not
indicate it will do this.

So let's use g_canonicalize_filename() instead, which seems to do the
right thing. Similarly use g_strdup_printf instead of g_snprintf().

Cherry-picked from commit 6f4fac7715eb66a90727f931246c93cd8e13a819 with
some conflict resolution.
2021-12-14 23:14:04 +01:00
..
actions Remove unnecessary space at the end of the string 2021-09-28 12:44:20 +02:00
config app: properly free internal strings at finalization and before… 2020-10-23 02:18:30 +02:00
core app: fix #383 Large PBM files exported from GIMP are blank 2021-11-14 18:27:39 -05:00
dialogs Show message dialogs in preferences dialog 2021-08-16 15:08:41 +02:00
display app: replace using the "draw" signal by "expose-event" on GTK+2. 2021-10-22 23:22:39 +02:00
file Issue #4536 - Seg fault when trying to open image on Google Drive (Gnome 3.34.3) 2020-07-28 11:20:18 +03:00
file-data app: fix #6436 *.gih grayscale export crashes GIMP 2021-11-08 17:11:52 -05:00
gegl app: do not try to copy a buffer result from a canceled GEGL operation. 2020-05-20 08:39:34 +03:00
gui Issue #5989 - performance improvement patches for gtk and gimp 2021-08-04 21:52:50 +02:00
menus app: start porting away from GtkAction and friends 2019-07-02 14:57:45 +02:00
operations Issue #5267: Cage transform tool causes artifacts. 2021-08-05 17:12:19 +02:00
paint Issue #4094 - Corrects some tools descriptions 2020-03-09 21:57:26 +00:00
pdb plug-ins: fix #6859 Hurl random pct limits in PDB are incorrect 2021-05-24 14:56:41 +00:00
plug-in app: fix gimp_plug_in_cleanup_item_new(). 2021-08-16 15:08:41 +02:00
propgui app: fix error propagation in boolean GUM grouping subexpressions 2020-06-12 01:35:11 +03:00
tests app, devel-docs: remove dangling DBUS_GLIB_* variables. 2019-11-16 19:32:35 +01:00
text Issue #6210: Subpixel font rendering system settings should only… 2021-10-22 12:49:43 +02:00
tools app: fix 3d transform tool not added to gimphelp-ids.h 2021-04-09 18:04:49 -04:00
vectors app: fix leaked queue created at init() (as reported by Massimo). 2021-08-16 15:08:41 +02:00
widgets app: add a comment and some newlines before the debug data section. 2021-07-05 16:45:52 +02:00
xcf Issue #987 Corrupt 'gimp-metadata' parasite. Parsing XMP data failed. 2021-01-22 12:46:10 -05:00
.gitignore
about.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
app.c app: improve opening images through the DBus service. 2020-11-11 13:19:43 +01:00
app.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
errors.c app: NULL log domain is not a bug. 2020-09-24 23:13:59 +02:00
errors.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
gimp-debug.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
gimp-debug.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
gimp-intl.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
gimp-log.c app: add gimp_log_{set,remove}_handler() 2020-08-02 11:08:45 +03:00
gimp-log.h app: add gimp_log_{set,remove}_handler() 2020-08-02 11:08:45 +03:00
gimp-priorities.h app: fix image-window UI-manager update while a projection is being rendered 2019-03-30 19:31:26 -04:00
gimp-update.c Issue #4777: "New version available" after update. 2020-10-16 18:16:06 +02:00
gimp-update.h Issue #4777: "New version available" after update. 2020-10-16 18:16:06 +02:00
gimp-version.c app: add contents of /.flatpak-info in the verbose info. 2020-07-17 22:21:47 +02:00
gimp-version.h app: store the revision number in a data file. 2020-02-14 01:00:47 +01:00
gimpcore.def app: streamline GimpHistogram; avoid spurious channel switch in histogram view 2019-10-22 15:50:24 +03:00
language.c Issue #4871: Plug-ins not translated. 2020-04-01 18:13:31 +02:00
language.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
main.c app: do not use PATH_MAX and realpath() on macOS. 2021-12-14 23:14:04 +01:00
Makefile.am app: check last GIMP release from gimp.org/gimp_versions.json. 2020-02-07 00:14:10 +01:00
sanity.c configure, app: depend on GEGL 0.4.32 2021-09-05 20:56:19 +02:00
sanity.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
signals.c app: fixes string format argument types on Windows 32-bit. 2020-04-21 14:15:53 +02:00
signals.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
tests.c Return FALSE on gimp_osx_focus_window to avoid endless loop 2020-01-15 17:44:53 +01:00
tests.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
unique.c Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00
unique.h Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:47:19 +02:00