mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master] logo: Makefile: fix inkscape Wayland GUI opening on LOGO.S
@ 2020-10-11  8:06 Ahmad Fatoum
  2020-10-12 12:07 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2020-10-11  8:06 UTC (permalink / raw)
  To: barebox

DISPLAY="" only affects x11 clients. Building sandbox_defconfig under
Wayland will still result in annoying inkscape windows being opened.
Drop DISPLAY = "" in favor of --shell, which should never display
a GUI. --shell has been part of inkscape since 2009 and so should be
generally available.

There is also --without-gui, but that is now deprecated and without
effect. --shell tested working on Inkscape 1.0.1 with both
GDK_BACKEND=wayland and GDK_BACKEND=x11.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
Cc: Antony Pavlov <antonynpavlov@gmail.com>

Hello Sascha,

can this be applied to master?
---
 lib/logo/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/logo/Makefile b/lib/logo/Makefile
index bf700da89b03..f0fe2c85477b 100644
--- a/lib/logo/Makefile
+++ b/lib/logo/Makefile
@@ -39,16 +39,16 @@ cmd_logo_S =							\
 	$(call if_changed,logo_S)
 
 # Inkscape 0.92.4 supports -z but Inkscape 1.0 doesn't
-INKSCAPEOPTS += $(call try-run, inkscape -z,-z,)
+INKSCAPEOPTS += $(call try-run, inkscape --shell -z,-z,)
 # Inkscape 0.92.4 uses -e but Inkscape 1.0 uses --export-type=png
-INKSCAPEOPTS += $(call try-run, inkscape -e -,-e -,--export-type=png)
+INKSCAPEOPTS += $(call try-run, inkscape --shell -e -,-e -,--export-type=png)
 # Inkscape 1.0 supports -o -
-INKSCAPEOPTS += $(call try-run, inkscape -o -,-o -,)
+INKSCAPEOPTS += $(call try-run, inkscape --shell -o -,-o -,)
 
 quiet_cmd_logo = LOGO.S   $@
 cmd_logo =							\
 (								\
-	DISPLAY="" inkscape $(OPTS_$(@F)) $(INKSCAPEOPTS) $< > $@; \
+	inkscape --shell $(OPTS_$(@F)) $(INKSCAPEOPTS) $< > $@; \
 )
 
 %.bblogo: $(srctree)/Documentation/barebox.svg FORCE
-- 
2.28.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH master] logo: Makefile: fix inkscape Wayland GUI opening on LOGO.S
  2020-10-11  8:06 [PATCH master] logo: Makefile: fix inkscape Wayland GUI opening on LOGO.S Ahmad Fatoum
@ 2020-10-12 12:07 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2020-10-12 12:07 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Sun, Oct 11, 2020 at 10:06:25AM +0200, Ahmad Fatoum wrote:
> DISPLAY="" only affects x11 clients. Building sandbox_defconfig under
> Wayland will still result in annoying inkscape windows being opened.
> Drop DISPLAY = "" in favor of --shell, which should never display
> a GUI. --shell has been part of inkscape since 2009 and so should be
> generally available.
> 
> There is also --without-gui, but that is now deprecated and without
> effect. --shell tested working on Inkscape 1.0.1 with both
> GDK_BACKEND=wayland and GDK_BACKEND=x11.
> 
> Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
> ---
> Cc: Antony Pavlov <antonynpavlov@gmail.com>
> 
> Hello Sascha,
> 
> can this be applied to master?
> ---

Yep, did that.

Sascha

>  lib/logo/Makefile | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/lib/logo/Makefile b/lib/logo/Makefile
> index bf700da89b03..f0fe2c85477b 100644
> --- a/lib/logo/Makefile
> +++ b/lib/logo/Makefile
> @@ -39,16 +39,16 @@ cmd_logo_S =							\
>  	$(call if_changed,logo_S)
>  
>  # Inkscape 0.92.4 supports -z but Inkscape 1.0 doesn't
> -INKSCAPEOPTS += $(call try-run, inkscape -z,-z,)
> +INKSCAPEOPTS += $(call try-run, inkscape --shell -z,-z,)
>  # Inkscape 0.92.4 uses -e but Inkscape 1.0 uses --export-type=png
> -INKSCAPEOPTS += $(call try-run, inkscape -e -,-e -,--export-type=png)
> +INKSCAPEOPTS += $(call try-run, inkscape --shell -e -,-e -,--export-type=png)
>  # Inkscape 1.0 supports -o -
> -INKSCAPEOPTS += $(call try-run, inkscape -o -,-o -,)
> +INKSCAPEOPTS += $(call try-run, inkscape --shell -o -,-o -,)
>  
>  quiet_cmd_logo = LOGO.S   $@
>  cmd_logo =							\
>  (								\
> -	DISPLAY="" inkscape $(OPTS_$(@F)) $(INKSCAPEOPTS) $< > $@; \
> +	inkscape --shell $(OPTS_$(@F)) $(INKSCAPEOPTS) $< > $@; \
>  )
>  
>  %.bblogo: $(srctree)/Documentation/barebox.svg FORCE
> -- 
> 2.28.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-12 12:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-11  8:06 [PATCH master] logo: Makefile: fix inkscape Wayland GUI opening on LOGO.S Ahmad Fatoum
2020-10-12 12:07 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox