OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0"?> |
| 2 <?xml-stylesheet type="text/xsl" |
| 3 href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
"?> |
| 4 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" |
| 5 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [ |
| 6 ]> |
| 7 <refentry id="xdg-copy"> |
| 8 <refentryinfo> |
| 9 <title>xdg-copy Manual</title> |
| 10 <copyright> |
| 11 <year>2006</year> |
| 12 </copyright> |
| 13 <author> |
| 14 <firstname>Kevin</firstname> |
| 15 <surname>Krammer</surname> |
| 16 </author> |
| 17 <address><email>kevin.krammer@gmx.at</email></address> |
| 18 <author> |
| 19 <firstname>Jeremy</firstname> |
| 20 <surname>White</surname> |
| 21 </author> |
| 22 <address><email>jwhite@codeweavers.com</email></address> |
| 23 <releaseinfo>This is release 0.5 of the xdg-copy Manual.</releaseinfo> |
| 24 </refentryinfo> |
| 25 |
| 26 <refmeta> |
| 27 <refentrytitle>xdg-copy</refentrytitle> |
| 28 <manvolnum>1</manvolnum> |
| 29 </refmeta> |
| 30 |
| 31 <refnamediv> |
| 32 <refname>xdg-copy</refname> |
| 33 <refpurpose>command line tool for copying files between desktop URIs</refpur
pose> |
| 34 </refnamediv> |
| 35 |
| 36 <refsynopsisdiv> |
| 37 <cmdsynopsis> |
| 38 <command>xdg-copy</command> |
| 39 <arg choice="plain"><option><replaceable>source</replaceable></option></ar
g> |
| 40 <arg choice="plain"><option><replaceable>destination</replaceable></option
></arg> |
| 41 </cmdsynopsis> |
| 42 <cmdsynopsis> |
| 43 <command>xdg-copy</command> |
| 44 <group choice="req"> |
| 45 <arg choice="plain"><option>--help</option></arg> |
| 46 <arg choice="plain"><option>--manual</option></arg> |
| 47 <arg choice="plain"><option>--version</option></arg> |
| 48 </group> |
| 49 </cmdsynopsis> |
| 50 </refsynopsisdiv> |
| 51 |
| 52 <refsect1 id="description"> |
| 53 <title>Description</title> |
| 54 <para> |
| 55 xdg-copy copies <replaceable>source</replaceable> to |
| 56 <replaceable>destination</replaceable> and provides visual feedback to |
| 57 the user during the operation. Both <replaceable>source</replaceable> |
| 58 and <replaceable>destination</replaceable> can either be a file or |
| 59 URL. Supported URL types are file, ftp, http and https. Additional |
| 60 URL types may be supported depending on the desktop environment. |
| 61 </para> |
| 62 <para> |
| 63 xdg-copy is for use inside a desktop session only. |
| 64 It is not recommended to use xdg-copy as root. |
| 65 </para> |
| 66 </refsect1> |
| 67 <refsect1 id="options"> |
| 68 <title>Options</title> |
| 69 <variablelist> |
| 70 <varlistentry> |
| 71 <term><option>--help</option></term> |
| 72 <listitem> |
| 73 <simpara> |
| 74 Show command synopsis. |
| 75 </simpara> |
| 76 </listitem> |
| 77 </varlistentry> |
| 78 |
| 79 <varlistentry> |
| 80 <term><option>--manual</option></term> |
| 81 <listitem> |
| 82 <simpara> |
| 83 Show this manualpage. |
| 84 </simpara> |
| 85 </listitem> |
| 86 </varlistentry> |
| 87 |
| 88 <varlistentry> |
| 89 <term><option>--version</option></term> |
| 90 <listitem> |
| 91 <simpara> |
| 92 Show the xdg-utils version information. |
| 93 </simpara> |
| 94 </listitem> |
| 95 </varlistentry> |
| 96 |
| 97 </variablelist> |
| 98 </refsect1> |
| 99 <refsect1 id="exitcodes"> |
| 100 <title>Exit Codes</title> |
| 101 <para> |
| 102 An exit code of 0 indicates success while a non-zero exit code |
| 103 indicates failure. The following failure codes can be returned: |
| 104 </para> |
| 105 <variablelist> |
| 106 <varlistentry> |
| 107 <term><option>1</option></term> |
| 108 <listitem> |
| 109 <simpara> |
| 110 Error in command line syntax. |
| 111 </simpara> |
| 112 </listitem> |
| 113 </varlistentry> |
| 114 <varlistentry> |
| 115 <term><option>2</option></term> |
| 116 <listitem> |
| 117 <simpara> |
| 118 One of the files passed on the command line did not exist. |
| 119 </simpara> |
| 120 </listitem> |
| 121 </varlistentry> |
| 122 <varlistentry> |
| 123 <term><option>3</option></term> |
| 124 <listitem> |
| 125 <simpara> |
| 126 A required tool could not be found. |
| 127 </simpara> |
| 128 </listitem> |
| 129 </varlistentry> |
| 130 <varlistentry> |
| 131 <term><option>4</option></term> |
| 132 <listitem> |
| 133 <simpara> |
| 134 The action failed. |
| 135 </simpara> |
| 136 </listitem> |
| 137 </varlistentry> |
| 138 </variablelist> |
| 139 </refsect1> |
| 140 <refsect1 id="examples"> |
| 141 <title>Examples</title> |
| 142 <para> |
| 143 <programlisting> |
| 144 xdg-copy "http://portland.freedesktop.org/png/freedesktop-logo.png" . |
| 145 </programlisting> |
| 146 </para> |
| 147 <para> |
| 148 <programlisting> |
| 149 xdg-copy "/tmp/foobar.png" "/home/user/foobar-copy.png" |
| 150 </programlisting> |
| 151 </para> |
| 152 </refsect1> |
| 153 </refentry> |
OLD | NEW |