Hi,<br><br>I'm coding a script that does some automates for my users ... including mounting a smb share.<br><br>Because we are using Gnome, I choosed to use gvfs-mount, which is quite similar to "Places > Connect to Server > ..."<br>
<br>Now my script does :<br>        print "*** Mounting the FILER ..."<br>        cmd = "/usr/bin/gvfs-mount smb://%s\;%<a href="http://s@myfiler.domain.ch/data/%s">s@myfiler.domain.ch/data/%s</a>" % (my_domain, my_user_name, my_user_name)<br>
        try:<br>            retCode = subprocess.call(cmd, shell=True)<br>        except KeyboardInterrupt, e:<br>            sys.stderr.write("Interrupted by ctrl-c. Exiting\n")<br>            sys.exit(1)<br>        if retCode != 0:<br>
            sys.stderr.write("Error while mounting : %s\n" % retCode)<br clear="all"><br>I have two major problems with this code :<br>- In case of "ctr-c" while the password is asked to the user, I get a Terminal in which the output from keyboard is inhibited... (like while typing password)<br>
- When the user runs this script by "double-click > Run" (not "Run in terminal") ... there is no interaction with the user.<br><br>I also did some try with subprocess.Popen ... with no success yet...<br>
<br>Thanks for any comment or suggestion!<br><br>Regards,<br>Samuel Bancal<br><br>ps : Or anyone knows how to get that gvfs-mount in GUI mode... Could see nautilus-connect-server ... but couldn't find any options.<br>
<br>-- <br>Samuel Bancal - CH<br>