Skip to content

Instantly share code, notes, and snippets.

View oktayacikalin's full-sized avatar

Oktay Acikalin oktayacikalin

View GitHub Profile
@oktayacikalin
oktayacikalin / mount.py
Created October 20, 2013 07:14
How to mount a local volume using gvfs (gio) in Python 3 - quick and dirty.
#!/usr/bin/env python3
# Quick and dirty implementation of mounting a local volume using Gio.
# For people who were scratching their heads like me.
# Code below based on infos from:
# http://stackoverflow.com/questions/5709454/gio-check-if-volume-is-mounted
# http://stackoverflow.com/questions/1991206/accessing-samba-shares-with-gio-in-python/2051628#2051628
@oktayacikalin
oktayacikalin / gist:4474247
Last active December 10, 2015 18:28
Just to make sure... :)
- return true;
+ return $response ? true : true;