Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automounted disk is not working well. #681

Closed
ghost opened this issue Aug 22, 2014 · 10 comments
Closed

Automounted disk is not working well. #681

ghost opened this issue Aug 22, 2014 · 10 comments

Comments

@ghost
Copy link

ghost commented Aug 22, 2014

I don't know what really happen. This is a problem like this:
#353

But in my case, not just is "automount-open", it's also automount, that not work. In Unity, there are not problem. I see that nautilus do not start if it's not the default browser in setting. This is not relate with nautilus then?

If this could be relate with nautilus then could be merge this:
#607

Not just to expand nemo to more context also to remove the dependency to cinnamon. Mutually dependencies it's not a good thing in general...

@ghost
Copy link
Author

ghost commented Aug 25, 2014

@zhaohb
Copy link

zhaohb commented Sep 13, 2014

@lestcape
do you have any ideas to resolve this issue? I met that issue now, I think gvfs cause, I used gvfs 1.20.2 and to tested and that issue did not happend, but I am not sure.

@ghost
Copy link
Author

ghost commented Sep 19, 2014

I will agree with you that all problem about mounting volumes will be related with gvfs, it's "normal", that when more than one application(nemo + nautilus) create an instance of gvfs some problem would happen. Cannot be possible that nautilus worked and not nemo with the same version of gvfs, so in my opinion can not be gvfs directly, there are at less in my case a problem with an specific version of gvfs. I use 1.20.1-1 I also suspect that could be some special configuration that cause this behavior, and this will be hard to find and fix.

@zhaohb
Copy link

zhaohb commented Sep 19, 2014

@lestcape
Hi, lestcape. I followed the code , the place where the problem happened is cinnamon , the path is cinnamon/js/ui/automount.js , in this file the function _checkAndMountVolume to check if the volume should and can mount

if (!this._settings.get_boolean(SETTING_ENABLE_AUTOMOUNT) ||
!volume.should_automount() ||
!volume.can_mount()) {
// allow the autorun to run anyway; this can happen if the
// mount gets added programmatically later, even if
// should_automount() or can_mount() are false, like for
// blank optical media.
this._allowAutorun(volume);
this._allowAutorunExpire(volume);

         return;
     }

when can not automount the volume the volume.should_automount() is false, contrary, the value of
volume.should_automount() is true .

the function shou_automount() is in gio lib , but in final it will call gvfs .

this is what I found , but I have no idear to fix . you can have a try . thanks .

@ghost
Copy link
Author

ghost commented Sep 19, 2014

What version of Cinnamon you have? jejeje...
Try to find the automount.js file here:

https://github.com/linuxmint/Cinnamon/tree/master/js/ui

This is really interesting for me, because i will add this code to DriverManager, to handle this problem by my own. But do not resolve any things of this problem, because i have Cinnamon 2.3... The lasted version....

https://mail.gnome.org/archives/commits-list/2011-July/msg05891.html

Thanks.

@ghost
Copy link
Author

ghost commented Sep 19, 2014

In fact, this appear to be more complex, Thanks to your comment I read more things. The problem could be relate also with systemd and upstar...

@zhaohb
Copy link

zhaohb commented Sep 19, 2014

oh, I am sorry ,my version is 1.8 , it is old . and my test is done in mint15, but I think in 2.3 the theory will be same , if you can not find the function _checkAndMountVolume I think it wiil ba packaged in lib .you can have a look the newest nemo and cinnamon , and find the relationship between them.

@mtwebster
Copy link
Member

Just driving by, automounting is handled by cinnamon-settings-daemon now.

@zhaohb
Copy link

zhaohb commented Sep 19, 2014

@mtwebster yes , I saw just now. thank you .

@ghost
Copy link
Author

ghost commented Sep 19, 2014

@mtwebster thanks...

I can automount volumes now, thanks to Driver Manager.
https://github.com/lestcape/Drives-Manager/commit/f96a071761efa510662f2e84ebefae4e1c705cd3

I close this issue, because is more relate with cinnamon-settings-daemon.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants