Usbumount

Nautilus Scripts

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

0
Score 46.0%
Description:

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
Last changelog:

10 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

9 years ago

I translated the script to Dutch.
You can download it here: http://myempire.one2xs.com/public_html/usbumount-nl.tar.gz

Report

RobinJ1995

9 years ago

Oops sorry for the incorrect link, this one is correct:
http://myempire.one2xs.com/usbumount-nl.tar.gz

Report

seraphyn

10 years ago

and use lang-files with include.
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

10 years ago

Hi friend!, first i want to say that this script is very helpful, thanks...

Second, i translated the script to Spanish, so if you want, the link is

http://www.megaupload.com/?d=4GAE15CF

Bye.

Report

FedeVecna

10 years ago

I translated the script in italian ;)
If you want to add it to the download list, the tar.gz is here [http://www.box.net/shared/1ub6vclxui]

Report

C

gueraph

10 years ago

Sorry for the late. I will add your translation as faster as i can.
Thanks ;)

Report

Fivizzz

11 years ago

Nice idea not displaying that "Another device" window when obviously useless.

And Great idea adding the possibility of changing icons according to each device.

This is becoming a great piece of code :D

Report

C

gueraph

11 years ago

Thank you Fivizzz for all your comments!
And thanks again for the translation!

Report

Fivizzz

11 years ago

You're welcome! :)

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

C

gueraph

11 years ago

Good idea ;) I'll see if it's possible to add this without rewrite all the code. But i think it's possible.

Report

Katie

11 years ago

How to install this? or Where will I place this script? I'm a newbie...

Report

C

gueraph

11 years ago

Hello!
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

11 years ago

People will find this very useful!

Report

C

gueraph

11 years ago

Thank you for your encouragement!

Report

Fivizzz

11 years ago

I noticed that notification messages do not display on my system.

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

11 years ago

Okay I googled it :p I should have earlier...

The package to install is libnotify-bin.

Everything seems to work fine now.

Report

C

gueraph

11 years ago

On Fedora, notify-send is installed by default.
Glad you find the answer to your problem!

Report

lukeen

11 years ago

In Ubuntu (I'm not sure if it is available in other distros) there's a panel-applet which can do the same, not with this nice dialog but it's ok.

You can also mount/unmount Devices nicely in Nautilus. This will even get more easy in next version of Gnome.

However, nice App!

Report

C

gueraph

11 years ago

I created this application to avoid opening nautilus everytime you want to unmount a device.
I'm on Fedora now. I don't remember this kind of applet on Ubuntu.
Thank you for your message ;-)

Report

Fivizzz

11 years ago

And as for me, I don't use gnome-panel anymore, I prefer cairo-dock and awn to make up for that ugly room-wasting bar :p

Report

Fivizzz

11 years ago

Note: I tried this applet, and the problem is that it displays not only USB volumes, but any volume whose mount point is neither '/' nor '/home'.

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

11 years ago

I needed something like that since I've been working with 'show_desktop' off and I wanted a convenient way to unmount my USB volumes.

This is a simple and efficent solution.

I'll report bugs if I encounter any.
Keep up.

You got my vote!

Report

C

gueraph

11 years ago

Thanks a lot!!

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

10 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

12345678910
1
product-maker I4C Feb 19 2013 3 bad
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.9
updated Feb 23 2009
added Aug 21 2008
downloads 24h
1
page views 24h 2
System Tags addon