Pinta/snap 1.7 - error importing "printscreen" data from XFCE on Manjaro

Bug #1922144 reported by Rega Fox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Fix Released
Undecided
Unassigned

Bug Description

By request on a previous post i made, here's a new report.

System.IO.FileNotFoundException: Could not find file "/tmp/Screenshot_2021-02-17_19-44-40.png"
File name: '/tmp/Screenshot_2021-02-17_19-44-40.png'
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0019e] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <d13c8b563008422a8c5aaec0a74089cc>:0
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess)
  at Pinta.Core.GdkPixbufFormat.Import (System.String fileName, Gtk.Window parent) [0x00001] in <2384e42676f8477c8d7fef8885667d1f>:0
  at Pinta.Core.WorkspaceManager.OpenFile (System.String file, Gtk.Window parent) [0x0003d] in <2384e42676f8477c8d7fef8885667d1f>:0

To reproduce:
1. Run Manjaro with XFCE (this might be a problem on other distros too, i have not tested that.)
2. Press "print screen" key or start the XFCE Screenshot utility and pick a region to screenshot
3. Choose to open with Pinta
4: Pinta starts, showing the error:

Could not find file "/tmp/-
-Screenshot_YYYY_MM_DD_HH-MM-SS.png"

File does exist. Current user has R/W access.

James Carroll mentioned the following command:
flatpak override com.github.PintaProject.Pinta --filesystem=/tmp

- I have not tested it.

Recent changes:

. Pinta 1.7 is now listed on official repos for Manjaro and it doesn't have any of the issues that i've been experiencing with Snap and Flatpak.

Tags: ui
Rega Fox (regafox)
tags: added: ui
Revision history for this message
Cameron White (cameronwhite91) wrote :

This should be fixed in Pinta 2.0, which supports the file chooser portals when sandboxed. If there are further issues, it's best to submit those to the Github issue tracker for the snap / flatpak package

Changed in pinta:
milestone: none → 2.0
status: New → Fix Committed
Changed in pinta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.