Forum: Ruby-Gnome 2 gio mount flags

Ff312ec21b0fd1d07c8708e29df7d242?d=identicon&s=25 Ebru Akagunduz (ebruakagunduz)
on 2014-01-27 19:42
Hi, I want to mount volumes under /media/username/. I get volumes:

volume_monitor = Gio::VolumeMonitor.get
all_volumes = volume_monitor.volumes

And I tried to mount volume under /media/username/, I am getting error:

all_volumes[0].mount(Gio::Mount::MountFlags::NONE, nil, nil)

TypeError: GMountMountFlags is not a GEnum: #<Gio::Mount::MountFlags
none>
from (pry):122:in `mount'

I didn't find suit flag for this. How can I mount volumes?

Thanks.
Ff312ec21b0fd1d07c8708e29df7d242?d=identicon&s=25 Ebru Akagunduz (ebruakagunduz)
on 2014-01-27 20:53
> And I tried to mount volume under /media/username/, I am getting error:
>
> all_volumes[0].mount(Gio::Mount::MountFlags::NONE, nil, nil)
>
> TypeError: GMountMountFlags is not a GEnum: #<Gio::Mount::MountFlags
> none>
> from (pry):122:in `mount'
>
> I didn't find suit flag for this. How can I mount volumes?

I used flag type as "nil" and problem solved :)
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.