[Solved] gnome-screenshot zenity commands work from terminal but not from Keyboard shortcut setting

trying2dev Asks: gnome-screenshot zenity commands work from terminal but not from Keyboard shortcut setting
I want to modify the command of PrintScreen key to one that takes the screenshoot and ask me the name of the file through a pop up window. From terminal below line did the job:

Code:
gnome-screenshot -f `zenity --entry`

But when I put that command in the keyboard shortcuts, it doesn’t work, nothing happens:


enter image description here

Note 1: How could I define in the command that saves the screenshot renamed in the Pictures folder?, I couldn’t do it. I tried:

Code:
gnome-screenshot -f "~/Pictures/"`zenity --entry`

** (gnome-screenshot:8259): CRITICAL **: 03:28:05.490: Unable to save the screenshot: Error opening file “/home/[username]/~/Pictures/PicTest”: No such file or directory

Note 2: I also notice that using the command I mentioned at the beginning, when I write the name it also takes the first string and the rest is ignored. Let’s say I call the pic taken as “Screenshot taken” then the pic is saved only as “Screenshot”

Thanks for your help.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.