https://bugs.kde.org/show_bug.cgi?id=417722

brainpower <brainpo...@mailbox.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brainpo...@mailbox.org

--- Comment #1 from brainpower <brainpo...@mailbox.org> ---
I have the same Problem. I've also configured Subfolders based on date.
My save filename is set to to "%Y/%M/screen-%2d".


Ran spectacle in strace and saw it try to open a file in /tmp without mkdir-ing
the subfolders first, thus failing.

  openat(AT_FDCWD, "/tmp/Spectacle.MIzolT/2020/02/screen-01.png",
O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0666) = -1 ENOENT (No such file or
directory)


The temporary dir exists, the subfolders do not:

  % tree /tmp/Spectacle.MIzolT
  /tmp/Spectacle.MIzolT

  0 directories, 0 files

After that I ran

  mkdir -p /tmp/Spectacle.MIzolT/2020/02/

and tried again, no error occurred then and the screenshot was saved correctly:

  % tree /tmp/Spectacle.MIzolT
  /tmp/Spectacle.MIzolT
  └── 2020
      └── 02
          └── screen-01.png

  2 directories, 1 file



So spectacle should do either of:
1. Create the subdirs if they do not exist, as it does when savong normally
2. Strip the subdirs when saving temporarily



VERSION INFORMATION

% spectacle --version
spectacle 19.12.2

Operating System: Arch Linux 
KDE Plasma Version: 5.18.2
KDE Frameworks Version: 5.67.0
Qt Version: 5.15.0
Kernel Version: 5.5.6-arch1-1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to