Bug 236417 - x11/xfce4-screenshooter-plugin: Update to 1.9.4
Summary: x11/xfce4-screenshooter-plugin: Update to 1.9.4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-xfce (Nobody)
URL: https://bugzilla.xfce.org/show_bug.cg...
Keywords: patch-ready
Depends on:
Blocks:
 
Reported: 2019-03-09 10:52 UTC by Olivier Duchateau
Modified: 2019-03-31 18:49 UTC (History)
1 user (show)

See Also:
madpilot: maintainer-feedback+


Attachments
Patch to update x11/xfce4-screenshooter-plugin (1.23 KB, patch)
2019-03-09 10:52 UTC, Olivier Duchateau
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Duchateau 2019-03-09 10:52:15 UTC
Created attachment 202736 [details]
Patch to update x11/xfce4-screenshooter-plugin

Update to 1.9.4
Comment 1 Guido Falsi freebsd_committer freebsd_triage 2019-03-09 18:44:36 UTC
Thanks I'm also testing a similar patch.
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2019-03-12 08:09:58 UTC
Port update itself works fine, but when trying to use it it's failing to save screenshots to disk.

Using the "save" option causes an error message:

Failed to open "<home dir>" for writing: Is a directory


Looking at git history the file saving code was heavily refactored and updated. Something must have been broken on the way.

Looks like the code fails to append a filename when actually saving the screenshot to disk.

I'm trying to investigate this and maybe I'll file a bug report upstream.
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2019-03-12 08:25:50 UTC
Filed a bug report upstream.

The problem happens only when using the panel plugin.
Comment 4 Olivier Duchateau 2019-03-12 17:03:38 UTC
(In reply to Guido Falsi from comment #2)

I encountered this bug, since several previous releases (only on FreeBSD, not under Linux) when I save picture, with default filename. I don't know it's same behaviour.
Comment 5 Guido Falsi freebsd_committer freebsd_triage 2019-03-12 17:30:23 UTC
(In reply to Olivier Duchateau from comment #4)
> (In reply to Guido Falsi from comment #2)
> 
> I encountered this bug, since several previous releases (only on FreeBSD,
> not under Linux) when I save picture, with default filename. I don't know
> it's same behaviour.

I have just tested in VMs.

Previous (1.9.3) version in FreeBSD does not show the broken behaviour. It did show the file requester when sending a screenshot to a file via the panel plugin.


I also tested in a Linux Manjaro VM I have, they just updated heir packages to include version 1.9.4 and I can see the same broken behaviour there, so it IS present in linux too.

Can be easily reproduced by adding the screenshoot plugin to the panel, left clicking on it and accepting the default (saving to file).


It definitely looks like a regression.
Comment 6 Olivier Duchateau 2019-03-12 21:22:50 UTC
(In reply to Guido Falsi from comment #5)

I think I find the problem (not yet tested, it will wait tomorrow). In action_idle function (lib/screenshooter-actions.c):

>      if (!sd->path_is_dir)
>        screenshooter_save_screenshot_to (sd->screenshot, sd->screenshot_dir);
>      else

2nd member of 'screenshooter_save_screenshot_to' must be a filename (see lib/screenshooter-dialogs.c) and not a directory.
Comment 7 Olivier Duchateau 2019-03-12 21:26:00 UTC
(In reply to Olivier Duchateau from comment #6)

In config file (~/.config/xfce4/xfce4-screenshooter) value of screenshot_dir is path to folder.
Comment 8 Guido Falsi freebsd_committer freebsd_triage 2019-03-31 18:46:08 UTC
Version 1.9.5 with a fix for the issue I reported is out.

I'm going to commit an update to this version shortly.
Comment 9 commit-hook freebsd_committer freebsd_triage 2019-03-31 18:48:23 UTC
A commit references this bug:

Author: madpilot
Date: Sun Mar 31 18:47:23 UTC 2019
New revision: 497439
URL: https://svnweb.freebsd.org/changeset/ports/497439

Log:
  Update xfce4-screenshooter-plugin to 1.9.5

  PR:		236417
  Submitted by:	Olivier Duchateau <duchateau.olivier@gmail.com>

Changes:
  head/x11/xfce4-screenshooter-plugin/Makefile
  head/x11/xfce4-screenshooter-plugin/distinfo
Comment 10 Guido Falsi freebsd_committer freebsd_triage 2019-03-31 18:49:56 UTC
Update committed. Thanks!