! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
remember previous choices
Status:
RESOLVED: FIXED
Product:
Xfce4-screenshooter
Component:
General

Comments

Description unhammer+dill 2017-05-05 13:00:54 CEST
Every time I use xfce4-screenshooter, I first tick "open with" and then select the bottom-most entry of the drop-down (Gimp), so I can crop the picture before uploading to bildr.no. It'd be nice if the program could remember those two choices (open with + which program to open with) for next time.
Comment 1 Andre Miranda editbugs 2017-09-23 23:08:52 CEST
Sorry, but I can't reproduce with 1.9.1, both options (action and the selected app) are remembered, they are saved in $HOME/.config/xfce4/xfce4-screenshooter. Can you check with the latest version? Does it happen every time? What about the config file?
Comment 2 unhammer+dill 2017-09-24 07:55:48 CEST
$ cat .config/xfce4/xfce4-screenshooter 
delay=0
region=1
action=3
show_mouse=0
screenshot_dir=file:/home/unhammer/Skrivebord
app=gimp-2.9
last_user=agimpscreenshot

with 1.8.2 from Xubuntu 17.04. Happens every time.


http://goodies.xfce.org/projects/applications/xfce4-screenshooter says 1.8.2 is the latest release and I can get the devel with 

 git clone http://git.xfce.org/git/apps/xfce4-screenshooter 

but 

$ git clone http://git.xfce.org/git/apps/xfce4-screenshooter 
Cloning into 'xfce4-screenshooter'...
fatal: repository 'https://git.xfce.org/git/apps/xfce4-screenshooter/' not found
Comment 3 wirch.eduard 2017-09-25 08:49:11 CEST
I'm using xfce4-screenshooter 1.9.1 with Manjaro Linux. Here's how it behaves for me:


1. Step:

$ ls -l .config/xfce4/xfce4-screenshooter && cat .config/xfce4/xfce4-screenshooter
-rw-r--r-- 1 ew ew 104 22. Sep 12:55 .config/xfce4/xfce4-screenshooter
delay=0
region=3
action=2
show_mouse=0
screenshot_dir=file:///home/ew/Pictures
app=gimp-2.8
last_user=

2. Step invoking screenshooter using shortcut. GIMP is preselected for "Open with". Selecting "Open with: viewnoir", pressing ok. Viewnoir open. Here's the config file after that step:

$ ls -l .config/xfce4/xfce4-screenshooter && cat .config/xfce4/xfce4-screenshooter
-rw-r--r-- 1 ew ew 104 25. Sep 08:41 .config/xfce4/xfce4-screenshooter
delay=0
region=3
action=3
show_mouse=0
screenshot_dir=file:///home/ew/Pictures
app=viewnior
last_user=

So it got modified. Viewnoir is correctly saved as "app". 
3. Step, invoking screenshooter again using shortcut. Result: GIMP is preselected for "Open with". When I press Cancel now, GIMP is stored as "app":

$ ls -l .config/xfce4/xfce4-screenshooter && cat .config/xfce4/xfce4-screenshooter
-rw-r--r-- 1 ew ew 104 25. Sep 08:42 .config/xfce4/xfce4-screenshooter
delay=0
region=3
action=1
show_mouse=0
screenshot_dir=file:///home/ew/Pictures
app=gimp-2.8
last_user=


Looks like something goes wrong interpreting the "app" setting. BTW: the "action" setting is ignored as well. The first option "Save" is always selected.
Comment 4 Andre Miranda editbugs 2017-09-27 03:38:26 CEST
It seems the shortcuts you guys are using contain one of the following options: -w/--window, -f/--fullscreen or -r/--region. I always use screenshooter without any of these options, therefore I wasn't able to reproduce the issue. However, there was a small glitch in the logic handling these options, I just pushed a fix[1] that will be available in the next release.

Let me know if that was the case (you are using screenshooter with one of those options) and if possible test from git master.

@unhammer+dill@mm.st
That page is outdated, the latest version is 1.9.1, you can either download the tarball[2] for that version or clone the repo[3]. Building should be straightforward: ./configure (or autogen.sh from git) --prefix=/usr && make && src/xfce4-screenshooter

1 - https://git.xfce.org/apps/xfce4-screenshooter/commit/?id=7602c9e3aa1f0a1e3865ed388d69c227e070181d
2 - http://archive.xfce.org/src/apps/xfce4-screenshooter/1.9/xfce4-screenshooter-1.9.1.tar.bz2
3 - git://git.xfce.org/apps/xfce4-screenshooter
Comment 5 unhammer+dill 2017-09-28 23:33:15 CEST
removing the -f from my printscreen shortcut did indeed make things work, thanks! 

It seems I need some updated deps for the git version, I think I'll trust you that it works if that's ok :)
Comment 6 Andre Miranda editbugs 2017-09-29 01:30:42 CEST
Thanks for the confirmation of my suspicion.
You don't have to trust me :) just build from git or wait for the next release (no idea when it'll happen, need to fix a couple of bugs until then).
If the bugs persists, please reopen.

Bug #13559

Reported by:
unhammer+dill
Reported on: 2017-05-05
Last modified on: 2017-09-29

People

Assignee:
Jérôme Guelfucci
CC List:
2 users

Version

Attachments

Additional information