<listitem><para>smb://username:password@workgroup/server[:port]/printer</para></listitem>
</itemizedlist>
- <para>smbspool tries to get the URI from argv[0]. If argv[0]
- contains the name of the program then it looks in the <envar>
- DEVICE_URI</envar> environment variable.</para>
+ <para>smbspool tries to get the URI from the environment variable
+ <envar>DEVICE_URI</envar>. If <envar>DEVICE_URI</envar> is not present,
+ smbspool will use argv[0] if that starts with <quote>smb://</quote>
+ or argv[1] if that is not the case.</para>
<para>Programs using the <command>exec(2)</command> functions can
pass the URI in argv[0], while shell scripts must set the