Package Details: cropgui 0.9-2

Git Clone URL: https://aur.archlinux.org/cropgui.git (read-only, click to copy)
Package Base: cropgui
Description: a simple tool for lossless jpeg cropping
Upstream URL: https://github.com/jepler/cropgui
Licenses: GPL
Submitter: jose1711
Maintainer: PainSan67
Last Packager: PainSan67
Votes: 16
Popularity: 0.042962
First Submitted: 2010-05-15 21:14 (UTC)
Last Updated: 2024-11-01 11:04 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

sabitmaulanaa commented on 2022-12-16 07:58 (UTC) (edited on 2022-12-16 07:58 (UTC) by sabitmaulanaa)

This is the patch that @eniac refer to.

--- cropgtk_orig.py 2021-10-04 20:33:02.398149075 +0200
+++ cropgtk.py  2021-10-04 20:34:04.880647475 +0200
@@ -220,7 +220,7 @@
         return self.result

 display = gdk.Display().get_default()
-wa = display.get_primary_monitor().get_workarea()
+wa = display.get_monitor(0).get_workarea()
 max_h = wa.height - 192
 max_w = wa.width - 64

eniac commented on 2022-02-04 12:41 (UTC)

I was able to fix the AttributeError issue on Wayland by applying the patch at https://pythonissues.com/issues/2146027

eniac commented on 2021-12-21 18:08 (UTC) (edited on 2021-12-21 18:08 (UTC) by eniac)

Tried both cropgui-git and cropgui, I always get the following error, any idea?

Stepconf encountered an error
Traceback:
File "/usr/bin/cropgui", line 223, in <module>
wa = display.get_primary_monitor().get_workarea()
AttributeError: 'NoneType' object has no attribute 'get_workarea'

Rhinoceros commented on 2021-12-17 08:07 (UTC)

Thanks for opening the issue @jose1711

jose1711 commented on 2021-12-17 08:04 (UTC)

@Rhinoceros Yes, can confirm this. https://github.com/jepler/cropgui/issues/94

Rhinoceros commented on 2021-12-17 00:14 (UTC)

I rebuilt for python 3.10 and cropgui is failing to launch for me. Anyone else with this problem?

Rhinoceros commented on 2020-07-22 13:49 (UTC)

Works fine for me:

$ pacman -Ql cropgui
cropgui /usr/
cropgui /usr/bin/
cropgui /usr/bin/cropgui
cropgui /usr/lib/
cropgui /usr/lib/python3.8/
cropgui /usr/lib/python3.8/site-packages/
cropgui /usr/lib/python3.8/site-packages/cropgui.glade
cropgui /usr/lib/python3.8/site-packages/cropgui_common.py
cropgui /usr/lib/python3.8/site-packages/filechooser.py
cropgui /usr/lib/python3.8/site-packages/stock-rotate-270-16.png
cropgui /usr/lib/python3.8/site-packages/stock-rotate-90-16.png
cropgui /usr/share/
cropgui /usr/share/applications/
cropgui /usr/share/applications/cropgui.desktop
cropgui /usr/share/pixmaps/
cropgui /usr/share/pixmaps/cropgui.png

How are you installing it?

dreieck commented on 2020-07-22 13:46 (UTC)

Regarding this and this problems, I added the following at the end of the install()-function:

  install -d -m 755 "$pkgdir/usr/bin"
  install -d -m 755 "$pkgdir/usr/share"
  mv -v "$pkgdir/sbin"/* "$pkgdir/usr/bin/"
  mv -v "$pkgdir/share"/* "$pkgdir/usr/share/"
  rmdir -v "$pkgdir/sbin" "$pkgdir/share"

dreieck commented on 2020-07-22 13:42 (UTC)

It creates a directory /share. It is a non-standard one.

Do you want to have /usr/share insteas?

dreieck commented on 2020-07-22 13:34 (UTC)

Wants to create /sbin, which it should not (it is a symlink to /usr/bin):

(1/1) checking for file conflicts                                                                            [################################################################] 100%
error: failed to commit transaction (conflicting files)
cropgui: /sbin exists in filesystem (owned by filesystem)
Errors occurred, no packages were upgraded.