
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
I made this script because i need it.
It show USB devices mounted (in /media/ ). You can choose what device you want to unmount.
The custom icons directory is created in ~/gnome2/nautilus-scripts/.usbumount-icons/ ( you can change it in Usbumount code if you want it at another place )
I'm learning bash, so the code must not be clean.
dependencies:
zenity
notify-send
12 years ago
0.1
*Release
0.2
*Minor change : i've just changed the location of the temporary file "mountedd" from /tmp/ directory to ~/ directory because some users don't have permission to access to /tmp/.
O.3
*Fixed display problem when devices names contain spaces.
0.4
*New english translation made by Fivizzz ( his profile here http://www.gnome-look.org/usermanager/search.php?username=Fivizzz ). Huge thanks to him!
0.5
*Removed useless pieces of code ( basename commande )
*Program ask to unmount another device ONLY if another device is plugged. Else, the program exit.
0.6
*This version allow you to add personal icons to the notification popup for your devices ( see 3rd screenshot ) .
Icons must have the same name that your devices. Morover, it must be in png format.
You just have to change the path to the "ICONS" variable.
If you don't want to add an icon or you don't have picture of your device, it will use the default icon ( give with the script ).
0.7
*If only one device is detected, the program ask you directly if you want to unmount this device ( thanks to Fivizzz for this idea! )
*Added an installation script made by Nielsrune ( his profile http://gnome-look.org/usermanager/search.php?username=nielsrune ). It install Usbumount in nautilus-script directory.
*Added samples icons created by Juanje Gomez ( http://www.puntodepartida.com/en/icons.php ) ( thanks to Nielsrune too :) ).
*Added Danish translation ( thanks to Nielsrune again :p )
0.7.5
*Added the check dependencies on install script ( by Nielsrune )
0.8
*Added Turkish translation made by Mr-idea :)
0.8.5
*Added Italian translation made by FedeVecna ;)
0.9
*Added Spanish translation made by danmol101
12 years ago
0.1
*Release
0.2
*Minor change : i've just changed the location of the temporary file "mountedd" from /tmp/ directory to ~/ directory because some users don't have permission to access to /tmp/.
O.3
*Fixed display problem when devices names contain spaces.
0.4
*New english translation made by Fivizzz ( his profile here http://www.gnome-look.org/usermanager/search.php?username=Fivizzz ). Huge thanks to him!
0.5
*Removed useless pieces of code ( basename commande )
*Program ask to unmount another device ONLY if another device is plugged. Else, the program exit.
0.6
*This version allow you to add personal icons to the notification popup for your devices ( see 3rd screenshot ) .
Icons must have the same name that your devices. Morover, it must be in png format.
You just have to change the path to the "ICONS" variable.
If you don't want to add an icon or you don't have picture of your device, it will use the default icon ( give with the script ).
0.7
*If only one device is detected, the program ask you directly if you want to unmount this device ( thanks to Fivizzz for this idea! )
*Added an installation script made by Nielsrune ( his profile http://gnome-look.org/usermanager/search.php?username=nielsrune ). It install Usbumount in nautilus-script directory.
*Added samples icons created by Juanje Gomez ( http://www.puntodepartida.com/en/icons.php ) ( thanks to Nielsrune too :) ).
*Added Danish translation ( thanks to Nielsrune again :p )
0.7.5
*Added the check dependencies on install script ( by Nielsrune )
0.8
*Added Turkish translation made by Mr-idea :)
0.8.5
*Added Italian translation made by FedeVecna ;)
0.9
*Added Spanish translation made by danmol101
RobinJ1995
10 years ago
You can download it here: http://myempire.one2xs.com/public_html/usbumount-nl.tar.gz
Report
RobinJ1995
10 years ago
http://myempire.one2xs.com/usbumount-nl.tar.gz
Report
seraphyn
11 years ago
so it's possible to send you only the lang-files and you do not need to provide diffrent versions.
One would be enough.
Interested in a german on, so give us the possibility to send you some lang-files like that.
Greetings
Report
danmol101
12 years ago
Second, i translated the script to Spanish, so if you want, the link is
http://www.megaupload.com/?d=4GAE15CF
Bye.
Report
FedeVecna
12 years ago
If you want to add it to the download list, the tar.gz is here [http://www.box.net/shared/1ub6vclxui]
Report
gueraph
12 years ago
Thanks ;)
Report
Fivizzz
12 years ago
And Great idea adding the possibility of changing icons according to each device.
This is becoming a great piece of code :D
Report
gueraph
12 years ago
And thanks again for the translation!
Report
Fivizzz
12 years ago
Another idea,
When there is only one USB volume detected, what about not displaying the mounted volume list but just a question box:
"Are you sure you want to unmount '$mount'"?
If No (or cancel) is clicked, then come back to the list...
Report
gueraph
12 years ago
Report
Katie
12 years ago
Report
gueraph
12 years ago
You're not forced to put it in a specific place. You can launch it wherever you want.
But if you want to use it in an easy way, you can put it in ~/.gnome2/nautilus-scripts/ ( or /home/your_name/.gnome2/nautilus-scripts, that's the same ).
Then, do a right click, go in scripts menu and launch it ( just check if the script have execution permission ).
You can also copy this script in /usr/bin/ .
Then do ALT+F2 ( that's working on KDE and Gnome ) and type usbumount to launch it.
Report
conorsulli
12 years ago
Report
gueraph
12 years ago
Report
Fivizzz
12 years ago
I assumed it was linked to the 'notify-send' package which you mentionned as dependecy.
However, neither Synaptic nor aptitude search would find it :(
Any idea (or link :p)?
Report
Fivizzz
12 years ago
The package to install is libnotify-bin.
Everything seems to work fine now.
Report
gueraph
12 years ago
Glad you find the answer to your problem!
Report
lukeen
12 years ago
You can also mount/unmount Devices nicely in Nautilus. This will even get more easy in next version of Gnome.
However, nice App!
Report
gueraph
12 years ago
I'm on Fedora now. I don't remember this kind of applet on Ubuntu.
Thank you for your message ;-)
Report
Fivizzz
12 years ago
Report
Fivizzz
12 years ago
Which means for example, my backup partition, whose mount point is /backup will always appear. And there's no way getting rid of it. (Except by manually altering the code, which I cannot do by myself)
Report
Fivizzz
12 years ago
This is a simple and efficent solution.
I'll report bugs if I encounter any.
Keep up.
You got my vote!
Report
gueraph
12 years ago
I've put 'volumes_visible' off in gconf-editor too.
So i needed to do this ( added to Gnome-main-menu it's perfect for me ).
I'm glad you like it!
Report