Sempre que copio um caminho de arquivo, obtenho isto:
em vez de apenas
Whenever I copy-paste a file path I get this:
x-special/nautilus-clipboard copy file://<file-path>
instead of just
This is something gnome is well aware of and it apparently has to do with an extension (I think, it's complicated), you can follow this issue on their gitlab site. I'll agree it's very annoying and I hope a fix is up soon.
Unbelievably, however inconveniencing it is, this bug is more than 2 years old, and hasn't been fixed yet. The best workaround for me has been the Nautilus script with a keyboard shortcut described by Filip Tack here.
apt install xsel.
~/.local/share/nautilus/scripts create a file (you can choose any name you want, but let's suppose you call it "copypath") with the following line of code. It copies to the clipboard the path of your selection in Nautilus:
echo -n "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | xsel -b -i
To run it, right-click on the file of interest and go to Scripts, copypath. Then you can paste the path anywhere.
But repeating this many times is unwieldy. You can define a keyboard shortcut for a quicker copy:
Create a file .config/nautilus/scripts-accels if it does not yet exist, and add the line
to bind the script to c in Nautilus.
The scripts works immediately, but the shortcut needs logging back in.