{"id":3333,"date":"2012-06-30T22:22:17","date_gmt":"2012-06-30T19:22:17","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=3333"},"modified":"2012-06-30T22:22:17","modified_gmt":"2012-06-30T19:22:17","slug":"nautilus-copy-from-commandline","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2012\/06\/30\/nautilus-copy-from-commandline\/","title":{"rendered":"Nautilus copy from commandline"},"content":{"rendered":"<p>Apparently this is now supported; at least the following seems to work under 12.04:<\/p>\n<pre><code>$ qdbus org.gnome.Nautilus \/org\/gnome\/Nautilus org.gnome.Nautilus.FileOperations.CopyFile \"file:\/\/\/source\/directory\" \"*\" \"file:\/\/\/destination\/directory\" \"\" <\/code><\/pre>\n<p>where\u00a0<em>\/source\/directory<\/em>\u00a0is the absolute path to your source directory, * is the glob for file[s] to copy,<em>\/destination\/directory<\/em>\u00a0is your destination directory and the last &#8221;&#8221; is for destination file name. Note that you need to have the last one there even if it&#8217;s empty as in here, to fulfill the method signature. Also, if you specify a target name and have multiple source files, they&#8217;ll all get copied to that one destination file, giving an overwrite prompt for each file after the first one (which may or may not be what you want).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>qdbus org.gnome.Nautilus \/org\/gnome\/Nautilus org.gnome.Nautilus.FileOperations.CopyFile &#8221;file:\/\/\/source\/dir&#8221; &#8221;*&#8221; &#8221;file:\/\/\/destination\/dir&#8221; &#8221;&#8221;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3922],"tags":[3406,3137],"class_list":["post-3333","post","type-post","status-publish","format-standard","hentry","category-aiheeton","tag-gnome","tag-nautilus","sijainti-launchpad"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/3333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=3333"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/3333\/revisions"}],"predecessor-version":[{"id":3335,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/3333\/revisions\/3335"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=3333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=3333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=3333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}