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
Udisks2 xfce #441
Udisks2 xfce #441
Conversation
What is udisks2 for? Does udisks1 work for other applications, and gvfs requires udisks2? |
Without udisks2 thunar can't (un)mount removable media. |
I don't have a clue which packages (can) use udisks(2). git grep shows nothing, but maybe through dbus some can find it -- it's a bit impure but I don't see how to better handle such cases. |
isn't udisks2 just a drop-in replacement for udisks1? |
The only package which depends on udisks2 is gvfs. One may say that this 2013/4/3 Vladimír Čunát notifications@github.com
|
@bluescreen303: I believe it is, although some packages may need updating. |
I didn't check but author claimed that they preserve DBus interface compatibility. CLI interface is changed. There are many negative posts on the web about this trend. Functionality is the same, luckily. |
HeavyWeight will be fixed after gnome3 from x-updates.
Note: I've updated the request. The change is in the commit this request is based on. Currently it is the commit of my last system update 0caed13. No changes in request itself were made. |
gvfs-network fails to start until it stores some setting in Gconf (memory backend is used by default). Unfortunately, it needs schemas for to work correctly. By default, glib searches for schemas in /usr/share/glib-2.0/schemas OR under GSETTINGS_SCHEMA_DIR. This patch sets this variable to let gvfs find it's precious.
Tadaaa! I found the problem! And solved it already, only it still introduces some crashes. The problem was that xfce4session was still designed around ConsoleKit which is deprecated by systemd now. I found that they recently fixed this in git to work with systemd but haven't released yet, so I added a patch for the single change. https://bugzilla.xfce.org/show_bug.cgi?id=8729 |
Ah, I see that the crashes are probably independent of this issue (I'm testing too many things at once :-). https://bugzilla.xfce.org/show_bug.cgi?id=9709 Here it's connected to glib>2.35, but the real root seems to be much deeper (glibc) https://bugs.archlinux.org/task/34630#comment108896 . |
In any case, this change should be stable if applied on master, then. We only need to really test it is so, as whole-x-session crashes can be very frustrating (volunteers welcome). |
Cool but strange: information about mounted volumes comes from gvfs, but it is systemd who monitors mountable ones. Are they doing same things? |
I believe it was about authorization: to manipulate with USB volumes you have to be in a session that is physically at the computer. ConsoleKit used to track that, now it's systemd through polkit (probably, I don't know much about this). |
This should solve many issuses, including: - show mountable volumes and mount-on-click (in Thunar) - fix shutdown actions (and don't ask for password anymore) It doesn't explicitly depend on anything in x-updates, but AFAIK noone has tested it against master (yet). Connected to #441.
I'm running without a crash for a few days now (atop x-updates). Moreover, crashes seem to have been only caused by the independent glib update and disappeared after fe8c1c4. |
I've just installed vcunat@d54a060, works fine. Now I can successfully reboot/poweroff from within Xfce! Should I expect any progress in re-mounting media with the fix? |
Yes, for me the media are shown and mount on-click. It's also in x-updates now. |
Well, for me it only solves reboot/poweroff. But I just cherry picked that single commit, so probably there are something else vital in x-updates. And yes, no crashes. So happiness +1 :) |
Aha, well, what login manager do you use? I only tried it with lightdm, even with this patch vcunat@d4a0ddf which is neither in x-updates yet (nor in lightdm release). It should do something with systemd support... I thought the patch didn't work as I was still getting the log message that got me to this patch, but maybe it did fix this problem. |
I use slim as login manager. May be it is the point. Slim has its own 2013/4/30 Vladimír Čunát notifications@github.com
|
Yes, that might be the cause, missing polkit support in slim. We should also test this against KDM and the committed lightdm. |
I tested USB disk mounting on my machine with thunar + xfce4session + (lightdm or KDM). All works on recent x-updates branch :-) |
Indeed, slim lacks polkit support. But lightdm looks nice, I'll think about 2013/5/4 Vladimír Čunát notifications@github.com
|
kde 4.10 does use/need udisks2 So I wonder what would be the best way for the nixos kde4 module to choose udisks/udisks2 based on the chosen kde version (by manual override in nixpkgs). |
Does this mean that you currently can't activate both KDE and XFCE module? Also, I don't see any assertion which prevents activating udisks and udisks2 at once. As to picking the version, adding wantsUdisks2 passthru to kdelibs shouldn't be a problem at all. |
I don't see a (theoretical) problem in activating both udisk services -- each program just calls the one that it wants. I had both kde and xfce activated, and certainly the thunar mounting worked (I'm not sure I tried the other). |
Now, you can adjust the kde module to pick the most appropriate udisks2: a6b9035 |
@Phreedom: I would expect the whole kde SC to switch udisks version at once (that's probably the way it's done in most distros), but the option can't hurt. |
@vcunat: grep udisk -ir pkgs/desktops/kde* is empty, and that probably means that kde picks up whatever is available on the system. kdelibs is the package which contains the udisks code(99% chance or so). So when nixos kde module makes core kde apackages available, it can check for this passthru and pick the most appriate udisks verion. |
@Phreedom: I probably didn't really get your intentions... so you mean to check this attribute in NixOS module to include udisks2 when one chooses kde >= 4.10? |
@vcunat: yes |
@Phreedom: then this seems perfect to me, sorry. |
This patchset fixes removable media mounting in gvfs applications, in particular, in Xfce's file manager Thunar.