Monday, April 29, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 730  / 2 Years ago, fri, july 29, 2022, 12:29:01

When I copy a file through Nautilus its emblem or icon is preserved, but if I do it with cp or rsync through CLI it isn't. Why, and how to fix it?



By preserved I mean that icons that I have manually changed stay like that when copying through Nautilus, and are otherwise reset to the default icons when copying through CLI.


More From » command-line

 Answers
0

I wrote a small Perl script that solves this issue, metasave. It saves nautilus metadata in the form of a shell script that you need to run on the destination system.



If you want to copy files on the command line and preserve their metadata, you need to use gvfs-copy, Gnome's replacement of cp.


[#37897] Saturday, July 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ipentainer

Total Points: 112
Total Questions: 113
Total Answers: 113

Location: Guernsey
Member since Tue, Jul 6, 2021
3 Years ago
;