You are not logged in.
I started writing this little tool the other day, when i finally switched from xfce to subtle wm (it rocks!), and i had the need to have my usb keys/cds/floppys mounted automagically. I googled a bit and found skvm, but it relies on hal which is deprecated, so i grabbed libudev documentation and started hacking.
You can find the source at https://github.com/LemonBoy/ldm
Feel free to report bug reports, feature requests (remember it's a device mounter, not a <insert other kind of software here>), complains and hate mail
TLM
Offline
Can it handle an iPod as well?
EDIT: I should add that it definetely looks interesting, a bit of feedback is always good of course Oh, and if I install it, will I have to add it to my DAEMONS array or something like that?
Last edited by Unia (2011-09-04 20:55:16)
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Can it handle an iPod as well?
EDIT: I should add that it definetely looks interesting, a bit of feedback is always good of course Oh, and if I install it, will I have to add it to my DAEMONS array or something like that?
Haven't tried with ipods yet, but as long as they are identified by udev as block devices it should work... I'll test with an ipod nano in some secs
Don't know how the DAEMONS spawning works, i usually launch it by hand once logged in...
Offline
Unia wrote:Can it handle an iPod as well?
EDIT: I should add that it definetely looks interesting, a bit of feedback is always good of course Oh, and if I install it, will I have to add it to my DAEMONS array or something like that?
Haven't tried with ipods yet, but as long as they are identified by udev as block devices it should work... I'll test with an ipod nano in some secs
Awesome, thank you!
Don't know how the DAEMONS spawning works, i usually launch it by hand once logged in...
Oh I see, I can add it to my autostart then!
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
I saw ldm and thought it was a xdm/kdm/gdm/slim for lxde. The name might cause some confusion but it seems like a very handy app to have
Cheers
You're just jealous because the voices only talk to me.
Offline
@moetunes: i'm not that good with names heh
@Unia: it handles ipods just fine, both with a fstab entry and without
I also fixed a couple of crucial bugs in the current head, please pull and rebuild
Offline
Hello, nice software !
I am trying to make an AUR package for it, could you add the target "install" in your Makefile please ?
Offline
Hello, nice software !
I am trying to make an AUR package for it, could you add the target "install" in your Makefile please ?
Done that, pushed right now
Also this morning i committed support for fstab entries with label or uuid scheme!
Offline
I saw ldm and thought it was a xdm/kdm/gdm/slim for lxde. The name might cause some confusion but it seems like a very handy app to have
Cheers
There is already a display manager for lxde --> lxdm
http://wiki.lxde.org/en/LXDM
https://wiki.archlinux.org/index.php/LXDE#LXDM
Offline
This looks very good indeed and many thanks for sharing ... but excuse me in advance for being thick, but how do you UNmount your devices?
Using Eject from a file manager such as Thunar, etc?
Offline
This looks very good indeed and many thanks for sharing ... but excuse me in advance for being thick, but how do you UNmount your devices?
Using Eject from a file manager such as Thunar, etc?
Good point. If eject issues an udev remove event you can safely use that, if it doesn't i might add an unmount function to it.
(You can check if eject behaves correctly by using eject and then checking in the /media folder if the mountpoint is still present)
Offline
I suppose there's also:
udisks --unmount <device>
udisks --eject <device>
which can be bound to a custom action in a file manager, but you've got to do some more fiddling to convert the device name to the more convenient mountpoint name.
Offline
I have done the PKGBUILD, but I'm not sure about the license, could you tell me which one you want please ?
Offline
I've made a PKGBUILD as well, also the license is the only point where I got stuck. Let's see who's first in the AUR.
Just kidding, it's yours! It's just, I ALWAYS create a PKGBUILD of applications I want to try, a quick search on the AUR didn't find ldm, so I wrote it.
LemonMan, starting ldm with the initscript causes my cpu to go up to 100%, ldm is the process causing this. Do you know this problem? If not, how can I help?
Offline
I think yours is more advanced, look at this total deception : http://pastebin.archlinux.fr/433938
So could you please upload yours, I promise to read it to improve my PKGBUILD skill to level 2
Offline
I've made a PKGBUILD as well, also the license is the only point where I got stuck. Let's see who's first in the AUR.
Just kidding, it's yours! It's just, I ALWAYS create a PKGBUILD of applications I want to try, a quick search on the AUR didn't find ldm, so I wrote it.
LemonMan, starting ldm with the initscript causes my cpu to go up to 100%, ldm is the process causing this. Do you know this problem? If not, how can I help?
The problem is fixed in the latest head, i valgrinded it before releasing but forgot to check if the method w/o polling was cpu expensive, silly me
Fixed also a couple of other tiny bugs.
Offline
Cool thanks for the code you saved me some work on my own project I forked you on github so if I make any changes or improvements they will be up for grabs.
Offline
Is there an (updated) PKGBUILD available I can use? twix, is yours usable?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Here's mine http://codepad.org/mwGtAuOu I / we still don't know the license!
Offline
Here's mine http://codepad.org/mwGtAuOu I / we still don't know the license!
Forgot to say that, sorry It's released under MIT license, i just added the LICENSE file to the repository too.
Btw the make install objective already copies the daemon bootstrapper in /etc/rc.d/
Offline
Thank you Army, I just installed it!
TheLemonMan, it doesn't work with my iPod Touch 3G. I know iPods (and those Touches/Phones in particular) are hard to work with, but is this perhaps a feature you could add in a later version? That would make this little gem complete for me!
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Thank you Army, I just installed it!
TheLemonMan, it doesn't work with my iPod Touch 3G. I know iPods (and those Touches/Phones in particular) are hard to work with, but is this perhaps a feature you could add in a later version? That would make this little gem complete for me!
Works just fine with a iPod shuffle 2g, don't know how the new iDevices are mounted...
Can you pastie the output of `udisks --dump` ?
Offline
I'll update my PKGBUILD and put it on the AUR, in case noone else already did. Now I'll be away for a few hours.
Offline
Offline