! 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 !
UCA and some errors while using a keyboard shortcut
Status:
RESOLVED: DUPLICATE

Comments

Description Yury Martynov 2019-10-16 22:29:49 CEST
Created attachment 9126 
screen record

Hi everyone!

likely I found a bug in the latest (1.8.9) Thunar when I trying to use a keyboard shortcut for the UCA (User Custom Applications?)

For example:
I want to use a simple command for copy path of folders/files selected by cursor mouse/keyboard arrow keys

1) Create a new UCA. Give name, description, and command line like this:
    echo -n %f | xclip -selection "clipboard"; notify-send --urgency=low -i "$([ $? = 0 ] && echo xfce4-clipman-plugin)" "Copied to clipboard as:" "%f"

2) Add Ctrl+P shortcut (i tried using another keyboard keys — is nothing changes)

3) I'm trying to use this shortcut. I need to open any folder, select any file and press Ctrl+P to invoke the appropriate command from UCA list

3) And now I get a random (oldest) path which is not related to the selected file/dir

But if you trying to open a new tab using Ctrl+T, select from opened directory any file and again press Ctrl+P — the command is invoked and I get a path of the selected file
Comment 1 Yury Martynov 2019-10-16 23:30:14 CEST
Created attachment 9127 
screen record 2

P.S.
this appear when I opened the context menu only without creating a new file
Comment 2 Reuben Green editbugs 2019-10-17 00:08:14 CEST
Hi Yury, thanks for the bug report!

So I think this bug is the same as bug #15119, which was recently fixed. I can reproduce your bug using the 1.8.9 version of Thunar from my distribution's repositories (Debian testing), but it does not occur when I use a version of Thunar compiled from the master or 4.14 branches of the git repo.

Thus I think this is already fixed in Thunar, but the fix might not have made it to your distribution yet. It would be great if you could test this with a version compiled from the git source and see if you still get this bug, if that's possible.

Thanks!
Comment 3 Yury Martynov 2019-10-17 00:29:47 CEST
(In reply to Reuben Green from comment #2)
> Hi Yury, thanks for the bug report!
> 
> So I think this bug is the same as bug #15119, which was recently fixed. I
> can reproduce your bug using the 1.8.9 version of Thunar from my
> distribution's repositories (Debian testing), but it does not occur when I
> use a version of Thunar compiled from the master or 4.14 branches of the git
> repo.
> 
> Thus I think this is already fixed in Thunar, but the fix might not have
> made it to your distribution yet. It would be great if you could test this
> with a version compiled from the git source and see if you still get this
> bug, if that's possible.
> 
> Thanks!

https://git.xfce.org/xfce/thunar/commit?id=1b568d86396e3ec298ca7f06cb7b47db62224e02 

I tried to apply this ^^^ patch for 1.8.9 and now it fixed for me
I look forward to a new version! :)

Thank you!
Comment 4 Yury Martynov 2019-10-17 00:30:08 CEST

*** This bug has been marked as a duplicate of bug 15119 ***

Bug #16055

Reported by:
Yury Martynov
Reported on: 2019-10-16
Last modified on: 2019-10-17

People

Assignee:
Xfce Bug Triage
CC List:
2 users

Version

Attachments

screen record (934.36 KB, video/mp4)
2019-10-16 22:29 CEST , Yury Martynov
no flags
screen record 2 (964.99 KB, video/mp4)
2019-10-16 23:30 CEST , Yury Martynov
no flags

Additional information