Conversation
|
Henry-Hiles
left a comment
There was a problem hiding this comment.
Tested, works perfectly. Interestingly not all the deps from gradia are in here, namely pycairo and pygobject-stubs, but it works okay, so I guess we are good!
LordGrimmauld
left a comment
There was a problem hiding this comment.
I have some nits, nothing obviously immediately wrong with this PR.
9b32494 to
5379215
Compare
Henry-Hiles
left a comment
There was a problem hiding this comment.
LGTM, tested and good
LordGrimmauld
left a comment
There was a problem hiding this comment.
Package works. Builds on x86_64-linux and aarch64-linux, as well as cross for both of those platforms.
On x86_64, both the native and cross builds work, supporting screenshots, clipboard and everything. I am honestly a bit surprised, usually these break hard outside flatpak on sway....
One thing i found: The "move" tool to move things you have drawn will spam the log with the following:
Traceback (most recent call last):
File "/nix/store/3rw1qlb0dqwy0ybwzhffr1z62h7ns9h9-gradia-1.4.0/share/gradia/gradia/overlay/drawing_overlay.py", line 538, in _on_draw
self._draw_selection_box(cr, scale)
File "/nix/store/3rw1qlb0dqwy0ybwzhffr1z62h7ns9h9-gradia-1.4.0/share/gradia/gradia/overlay/drawing_overlay.py", line 194, in _draw_selection_box
cr.set_source_rgba(*accent)
TypeError: Context.set_source_rgba() argument after * must be an iterable, not RGBA
However, this might well be an upstream bug, and it does seam to work.
Overall, lgtm!
|
|
Right. Then my guess is on a library mismatch betweehn your pyproject toml and what is in nixpkgs (we mostly ignore pyproject toml). That said, we did not need relaxDeps here, so in theory these versions are allowed. One would have to now go and compare the dep versions between flatpak and nix i guess. Or read the code and look at the call, see what it takes to make it happy. |
|
Better to write a patch and submit upstream. |
But how does it work in the flatpak? Shouldn't it then also log an error there? |
|
Flatpak might just blackhole those errors instead of logging them? It is not actually a hard crash. |
|
Re-running CI due to a odd failure fixed in #416448 |
|
LordGrimmauld
left a comment
There was a problem hiding this comment.
Still works, waiting for a merge...
|
Successfully created backport PR for |

Gradia is a screenshot editing tool with the option to add a colored background, draw shapes or write text on screenshots.
https://github.com/AlexanderVanhee/Gradia
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.