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

[Bug] Image preview in notification is blank or shows error when there's a space in the filename. #507

Open
deadbody13 opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@deadbody13
Copy link

Description
Images from screenshot-related notifications are blank or show an error when there's a space in the filename.

To Reproduce

  1. (In Niri) Run niri screenshot utility with filename Screenshot from %Y-%m-%d %H-%M-%S.png.

Expected behavior
Notification appears in top right corner labeled "Screenshot Captured" with a preview of the captured image showing in the body text.

Please provide logs if you're experiencing notification errors / bugs

** (swaync:105781): DEBUG: 15:37:16.978: notiDaemon.vala:171: Notification: 
category:		(null)
image_data:		false
expire_timeout:		-1
replaces_id:		0
desktop_entry:		(null)
body:			You can paste the image from the clipboard.
app_icon:		file:///home/sven/Pictures/Screenshots/Screenshot%20from%202025-01-31%2015-37-16.png
action_icons:		false
time:			1738355836
hints:		
	urgency: byte 0x01
	transient: true
applied_id:		1
image_path:		(null)
inline-reply:		(null)
app_name:		niri
summary:		Screenshot captured
icon_data:		false
resident:		false
default_action:		(null)
actions:		
urgency:		Normal

Failed to open file “/home/sven/Pictures/Screenshots/Screenshot%20from%202025-01-31%2015-37-16.png”: No such file or directory

Screenshots
Image

Desktop (please complete the following information):

  • OS: Fedora 41
  • Version: Workstation
  • DE/WM: Niri

Additional context
This isn't a huge issue but it was causing me problems for a while until I debugged it with G_MESSAGES_DEBUG=all swaync. Now I've replaced any with _ and that's mitigated the issue but thought it was still worth bringing up.

@deadbody13 deadbody13 added the bug Something isn't working label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant