taking screenshots fails with gnome-shell error after upgrade to 20.04

Bug #1876887 reported by Yannik
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

After upgrading from ubuntu desktop 19.10 to 20.04, taking screenshots using the 'PrntScrn' keyboard-button fails with the following gnome-shell error logged in journalctl:

Mai 05 11:27:17 work-pc2 gnome-shell[1683]: JS ERROR: Error: Argument 'filename' (type filename) may not be null _resolveRelativeFilename/path<@resource:///org/gnome/shell/ui/screenshot.js:73:26 _resolveRelativeFilename@resource:///org/gnome/shell/ui/screenshot.js:73:11 _createStream@resource:///org/gnome/shell/ui/screenshot.js:102:9 ScreenshotAsync@resource:///org/gnome/shell/ui/screenshot.js:220:35 _handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:371:35 _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:404:34

$ dpkg -l |grep gnome-shell
ii gnome-shell 3.36.1-5ubuntu1
ii gnome-shell-common 3.36.1-5ubuntu1
ii gnome-shell-extension-appindicator 33-1
ii gnome-shell-extension-desktop-icons 20.04.0-1
ii gnome-shell-extension-ubuntu-dock 67ubuntu20.04.5
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
DisplayManager: gdm3
DistroRelease: Ubuntu 20.04
GsettingsChanges:

InstallationDate: Installed on 2020-01-17 (108 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
Package: gnome-shell 3.36.1-5ubuntu1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 5.4.0-28.32-generic 5.4.30
RelatedPackageVersions: mutter-common 3.36.1-3ubuntu3
Tags: focal
Uname: Linux 5.4.0-28-generic x86_64
UpgradeStatus: Upgraded to focal on 2020-04-28 (6 days ago)
UserGroups:

_MarkForUpload: True

Revision history for this message
Yannik (yannik-5) wrote : Dependencies.txt

apport information

tags: added: apport-collected focal
description: updated
Revision history for this message
Yannik (yannik-5) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Yannik (yannik-5) wrote : ProcEnviron.txt

apport information

Revision history for this message
Yannik (yannik-5) wrote : ShellJournal.txt

apport information

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
status: Confirmed → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Please check you have a directory called 'Pictures' in your home directory and create one otherwise.

Please also attach a copy of this file from your home directory: .config/user-dirs.dirs

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Yannik (yannik-5) wrote :

There is no directory 'Pictures' (or a similar named directory in my locale) in the home directory.

Here's the .config/user-dirs.dir:
XDG_DESKTOP_DIR="$HOME/Schreibtisch"
XDG_DOWNLOAD_DIR="$HOME/Downloads"

Screenshots were saved to $HOME in the past, not a 'Pictures' a directory.

We really do not want to add a Pictures directory, because we want to encourage our users to save their files on their smb-mounted home on our server.

How can we change the path where the Screenshots get saved?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Try adding a new line to that file:

XDG_PICTURES_DIR="$HOME"

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gnome-shell (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-shell (Ubuntu):
status: Incomplete → Expired
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.