Commit Graph

21 Commits

Author SHA1 Message Date
lillolollo 691ec70c0e Eliminate warning: ‘gimp_unique_dbus_open’ defined but not used [-Wunused-function] 2023-06-25 18:01:45 +00:00
Jehan 68cd873481 app: add a comment to complete !808.
It is better to add a comment rather than simply disabling these 2 calls without
explanation on macOS. This way, developers who'll look at this code in the
future will immediately know what's the reason and status for the "unicity"
concept of GIMP process on macOS. Basically there are 3 features:

- Opening files from another software (such as "open with" in file browsers)
  which is handled differently in macOS and apparently works fine. It looks like
  it works by handling system signals, connected from gui_unique_quartz_init().
- Opening files by running a new GIMP process which would pipe the filenames
  into an existing GIMP process before immediately exiting.
- Running batch process in an existing GIMP process, also by running a short-run
  GIMP process.

The last 2 features are simply now officially disabled in macOS because dbus is
not installed by default and seem like it may cause issues when it is.

See discussions in !808 and #8997.
2023-01-12 18:55:22 +01:00
Lukas Oberhuber 9102e47637 macos: do not call dbus for uniqueness
DBus can cause instability on the MacOS platform, and regardless
MacOS handles application uniqueness already.

The batch version has also been modified as it only applies if
compiled as an application, since it returns FALSE if it is complied
as a console app.
2023-01-12 17:15:48 +00:00
Michael Natterer 5f700549e7 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
Jehan 84360b1956 app: indentation fix. 2015-09-29 00:32:24 +02:00
Jehan cd2b395194 app: batch commands won't run on existing instance. 2015-09-28 22:31:21 +02:00
Michael Henning 45472ee088 app: Fix unique logic on windows 2014-07-08 12:50:50 -04:00
Michael Natterer 98ae4b1f2c app: use g_file_new_for_commandline_arg_and_cwd() in unique.c 2014-07-08 01:25:17 +02:00
Michael Natterer 697572ccc0 app,libgimp*: fix includes to follow our include policy
- don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
- instead, include it in many .c files instead of <glib-object.h>,
  finally acknowledging the fact that app/ depends on gdk-pixbuf almost
  globally
- fix up includes as if libgimpbase depended in GIO, which it soon will
2013-10-15 01:58:39 +02:00
Michael Natterer c4460e846b Bug 622934 - Migrate from dbus-glib to glib's GDBus
Drop the glib-dbus dependency and port stuff to GDBus. Use it
unconditionally if not on Windows or OSX. It seels to work just like
before but I have no idea if everything is really correct.
2013-05-24 23:25:47 +02:00
Michael Natterer ad83b656a7 app: port the client side of the unique impl to GDBus 2011-10-28 09:34:59 +02:00
Michael Schumacher 17b36d3bec Fix some compile warnings on Microsoft Windows
Added WPARAM and LPARAM cast to SendMessage arguments 3 and 4.
2010-01-06 14:12:40 +01:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann f56bc8493f app/widgets/Makefile.am app/widgets/gimpdbusservice.[ch] removed here ...
2008-07-13  Sven Neumann  <sven@gimp.org>

	* app/widgets/Makefile.am
	* app/widgets/gimpdbusservice.[ch]
	* app/widgets/dbus-service.xml: removed here ...

	* app/gui/Makefile.am
	* app/gui/gimpdbusservice.[ch]
	* app/gui/dbus-service.xml: ... and moved here.
	(gimp_dbus_service_activate): raise the first display instead of
	the toolbox.

	* app/gui/gui-unique.c (gui_unique_win32_idle_open): same change
	here, raise the display instead of the toolbox.

	* app/unique.c: changed accordingly.


svn path=/trunk/; revision=26184
2008-07-13 19:49:32 +00:00
Sven Neumann e6e549a2d6 app/unique.c on Win32, if the gimp binary is started without filenames,
2008-07-13  Sven Neumann  <sven@gimp.org>

	* app/unique.c
	* app/gui/gui-unique.c: on Win32, if the gimp binary is started
	without filenames, raise the toolbox, just as we do in the DBus
	code path.


svn path=/trunk/; revision=26183
2008-07-13 19:04:38 +00:00
Sven Neumann 8746d0d0b7 removed trailing whitespace
svn path=/trunk/; revision=26182
2008-07-13 18:00:06 +00:00
Aurimas Juška 7ea57f5c80 check for NULL pointer to prevent crash when there are no filenames
2008-07-13  Aurimas Juška  <aurisj@svn.gnome.org>

	* app/unique.c (gimp_unique_win32_open): check for NULL pointer to
	prevent crash when there are no filenames provided.


svn path=/trunk/; revision=26179
2008-07-13 16:27:58 +00:00
Tor Lillqvist 10cc717b88 Check GError being unset correctly. (gimp_unique_win32_open): Add missing
2008-07-11  Tor Lillqvist  <tml@novell.com>

	* app/unique.c (gimp_unique_filename_to_uri): Check GError being
	unset correctly.
	(gimp_unique_win32_open): Add missing semicolon.


svn path=/trunk/; revision=26124
2008-07-11 12:38:53 +00:00
Sven Neumann 3ba8295b5c app/unique.c merged code from bug #410439 to provide builtin
2008-07-11  Sven Neumann  <sven@gimp.org>

	* app/unique.c
	* app/gui/gui-unique.[ch]: merged code from bug #410439 to 
provide
	builtin gimp-win-remote functionality for Win32. This is 
untested
	and most probably doesn't even compile.


svn path=/trunk/; revision=26120
2008-07-11 10:31:27 +00:00
Sven Neumann 0cf63ba421 moved some common code back to main.c
svn path=/trunk/; revision=26118
2008-07-11 09:16:23 +00:00
Sven Neumann 30cc37c5fe app/Makefile.am new files containing functionality to check for an already
2008-07-11  Sven Neumann  <sven@gimp.org>

	* app/Makefile.am 
	* app/unique.[ch]: new files containing functionality to check 
for
	an already running instance of GIMP of notifying it about files 
to
	open. Code split out of main.c.

	* app/main.c: changed accordingly.


svn path=/trunk/; revision=26117
2008-07-11 09:08:07 +00:00