File: 0001-disable-gui-as-it-s-barely-functional.patch

package info (click to toggle)
img2pdf 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 948 kB
  • sloc: python: 10,197; sh: 39; makefile: 8
file content (34 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Johannes Schauer Marin Rodrigues <josch@debian.org>
Date: Sun, 23 Mar 2025 15:35:08 +0100
Subject: disable gui as it's barely functional

Forwarded: not-needed
---
 src/img2pdf.py | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/img2pdf.py b/src/img2pdf.py
index 11d4fcc..fc37c23 100755
--- a/src/img2pdf.py
+++ b/src/img2pdf.py
@@ -4164,9 +4164,6 @@ Report bugs at https://gitlab.mister-muffin.de/josch/img2pdf/issues
         version="%(prog)s " + __version__,
         help="Prints version information and exits.",
     )
-    parser.add_argument(
-        "--gui", dest="gui", action="store_true", help="run experimental tkinter gui"
-    )
     parser.add_argument(
         "--from-file",
         metavar="FILE",
@@ -4591,10 +4588,6 @@ def main(argv=sys.argv):
     if args.pillow_limit_break:
         Image.MAX_IMAGE_PIXELS = None
 
-    if args.gui:
-        gui()
-        sys.exit(0)
-
     layout_fun = get_layout_fun(
         args.pagesize, args.imgsize, args.border, args.fit, args.auto_orient
     )