Article 5E081 Stop "file://" from being added to file name & path, when copied from Nemo - pasted in Bash

Stop "file://" from being added to file name & path, when copied from Nemo - pasted in Bash

by
LenHoff
from LinuxQuestions.org on (#5E081)
In Mint 18.1, Cinnamon 3.2.7, R-clicking & copy a file in Nemo & paste into terminal (Bash) always adds "file://" in front of the location (I'm usually copying from ~/Downloads or ~/Documents). It doesn't matter if Shift+Ctrl+V or paste with a mouse is used.

In the XFCE terminal (Mint 19.3) it doesn't add the "file://" - copying a file name & path from Thunar & pasted in the XFCE terminal.

Copying a file name / path from Nemo & pasting to any other app does not add "file://" to the path.

In Mint 18.1, one example where it wastes time is verifying a file's signature & copy the file name/path in Nemo & paste in terminal (after '--verify'), it will be:
$ gpg --verify file:///home/buz/Downloads/myfile.bz2.asc

I have to manually delete 'file://', then copy the path & filename, (sans .asc) & paste it after the detached sig file. Most commands or apps won't work in terminal if the "file://" is left in place.

I've never found a reason why file:// is added in one terminal & not the other, or if there's a way to stop it in Mint's Bash.

I've looked at settings in Bash & XFCE's terminal and don't see anything obvious. Both terminals have Shift + Ctrl + V for paste shortcut.
Thanks.latest?d=yIl2AUoC8zA latest?i=5xqK7YFiVvY:HZDKIh2GEGw:F7zBnMy latest?i=5xqK7YFiVvY:HZDKIh2GEGw:V_sGLiP latest?d=qj6IDK7rITs latest?i=5xqK7YFiVvY:HZDKIh2GEGw:gIN9vFw5xqK7YFiVvY
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments