Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from dynobo:main #11

Merged
merged 38 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
fa65323
Update messages.po (#622)
albanobattistella Apr 30, 2024
cf57cc6
fix(screengrab): don't try grim on non-wlroots
dynobo Apr 30, 2024
292fc34
cicd: don't publish preview build on external branch
dynobo Apr 30, 2024
8a46946
Update uk_UA messages.po (#625)
thevllad May 4, 2024
a9fe05c
docs(changelog): add contribution; v0.5.5 is delayed
dynobo May 4, 2024
a370c64
docs(readme): update language status
dynobo May 4, 2024
dc991e9
docs(readme): remove microsoft store reference
dynobo May 5, 2024
5ae2bd9
feat(l10n): add pt_br localization
dynobo May 6, 2024
ca3e181
chore(l10n): update locales
dynobo May 6, 2024
6926814
chore(l10n): add messages.pot for web translation
dynobo May 7, 2024
8686a62
cicd: build on macOS 11
dynobo Jan 16, 2024
aaa5f40
cicd: build on macOS M1
dynobo May 7, 2024
1a2969d
test(ui): increase robustnes of frame counter test
dynobo May 7, 2024
8968484
fix(docs): adjust version bump
dynobo May 7, 2024
288c2dd
build(release): bump to 0.5.5
dynobo May 7, 2024
2bef699
fix(clipboard): fix wlclipboard on non-GNOME environments
Scrumplex May 8, 2024
a5fb478
Update CHANGELOG
dynobo May 8, 2024
89d4015
feat(lang): translated using weblate (German)
dynobo May 7, 2024
c53778f
feat(lang): translated using weblate (Spanish)
dynobo May 7, 2024
4da3bd4
feat(lang): translated using weblate (Italian)
dynobo May 7, 2024
509171a
feat(lang): translated using weblate (Portuguese (Brazil))
dynobo May 7, 2024
94ddc3e
feat(lang): translated using weblate (Russian)
dynobo May 7, 2024
2511476
feat(lang): translated using weblate (Ukrainian)
dynobo May 7, 2024
b92e4ce
docs(changelog): prepare next release
dynobo May 8, 2024
b347d48
build(release): bump to 0.5.6
dynobo May 8, 2024
ac0e780
fix(screengrab): file url parsing error in case of quoted special cha…
supersonictw May 13, 2024
312edd1
feat(lang): translated using weblate (French) (#648)
weblate May 16, 2024
8c22db6
docs(changelog): add contribution
dynobo May 17, 2024
5b4bf81
refactor(ui): fix inconsistent method kwarg
dynobo May 18, 2024
94c95bb
chore(l10n): update locales coverage
dynobo May 18, 2024
507c9c3
refactor(gui): set window fullscreen
dynobo May 18, 2024
d65f5e5
fix(gui): add workaround for showFullScreen
dynobo May 18, 2024
144241e
docs(changelog): prepare release
dynobo May 18, 2024
23cc347
build(release): bump to 0.5.7
dynobo May 18, 2024
6317d55
fix(gui): enable workaround for setFullScreen() for all wayland DEs
dynobo May 19, 2024
1cb0203
build(release): bump to 0.5.8
dynobo May 19, 2024
bcf155e
chore: bump pyside version
dynobo May 24, 2024
bd6b60f
chore: re-enable type checking
dynobo May 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(screengrab): file url parsing error in case of quoted special cha…
…rs (dynobo#644)

* fix(dbus_portal.py): decode utf-8 on file scheme uri

* fix(dbus_portal.py): add unquote for utf-8 decoding

* Update normcap/screengrab/handlers/dbus_portal.py

* Update CHANGELOG

---------

Co-authored-by: dynobo <[email protected]>
  • Loading branch information
supersonictw and dynobo authored May 13, 2024
commit ac0e78093639ad517d6114f04bd427d703beeea9
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# Changelog

## v0.5.7 (upcoming)

- Linux: Fix crash on wayland in case of user's home directory contains special character. Thanks, [@supersonictw](https://github.com/supersonictw)! ([#643](https://github.com/dynobo/normcap/issues/643))

## v0.5.6 (2024-05-08)

- All: Fix minor typos in translations. ([#641](https://github.com/dynobo/normcap/pull/641))
Expand Down
5 changes: 3 additions & 2 deletions normcap/screengrab/handlers/dbus_portal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
from pathlib import Path
from typing import Optional
from urllib.parse import urlparse
from urllib.parse import unquote, urlparse

from PySide6 import QtCore, QtDBus, QtGui

Expand Down Expand Up @@ -199,8 +199,9 @@ def _exception_triggered(uri: Exception) -> None:

uri = result[0]
parsed_uri = urlparse(uri)
parsed_path = unquote(parsed_uri.path)

image_path = Path(parsed_uri.path)
image_path = Path(parsed_path)
image = QtGui.QImage(image_path)

# XDG Portal save the image file to the users xdg-pictures directory. To not let
Expand Down