Quantcast
Viewing all articles
Browse latest Browse all 746

Trouble uploading screenshots? Under Linux, screenshots go in ~/Pictures

The default web browser under Ubuntu is Firefox in Snap packaging. Because hidden folders often contain saved passwords, private keys, and other very sensitive data, the Snap container blocks programs from reading or writing files in hidden folders that don't belong to it. If a user attempts to drag a file from $HOME/.config/Mesen2/Screenshots or $HOME/.fceux/snaps into the browser window to upload it, the file always fails to upload. This is because these folders belong to Mesen or FCEUX, not the browser. The user must copy screenshots somewhere else first before uploading them to NESdev Forums, NESdev Wiki, or Discord. Elsewhere, I collected forum and Q&A posts by other people expressing problems with Snap packaged web browsers' inability to read files in hidden folders.

This implies that programs probably shouldn't be saving user-visible screenshots in hidden folders by default. I looked at other widely installed programs to understand what destination users might expect. The consensus appears to be $XDG_PICTURES_DIR, which usually expands to $HOME/Pictures.
  • In Xfce4 Screenshooter, part of Ubuntu's Xfce desktop, each time the user takes a screenshot, it opens a "Save As" file chooser. This allows saving to the file system, to a server connected through SMB or SFTP, or to any other destination supported by GVfs.
  • VLC media player saves the result of Video > Take Snapshot to $HOME/Pictures/vlcsnap-<date>-<localtime_ms>.png.
  • GNOME's screenshot tool also saves screenshots in $HOME/Pictures. (Per "Screenshots" in the GNOME manual and a tutorial by Lubos Rendek via an answer by Witold Kaczurba.)
$HOME/.config comes from the XDG base directory specification, and $HOME/Pictures comes from the XDG user directories specification.

Statistics: Posted by tepples — Tue Aug 13, 2024 5:27 am — Replies 0 — Views 76



Viewing all articles
Browse latest Browse all 746

Trending Articles