PDA

View Full Version : Presenting Ejecter, a quick way to unmount devices right from your system tray



fredp
September 25th, 2008, 11:12 PM
Hello everybody,
I just released the first public version (0.0.9) of Ejecter (http://launchpad.net/ejecter), a little tool which makes it possible to unmount external devices and eject cd-roms without having to right-click on device icon either on the desktop or in nautilus.
It sits in background and shows an icon in the system tray when one or more peripherals are connected to your pc: once clicked it a window appears with the list of the devices (volume name and device type, much clearer than the similar thing available on Windows) and the related eject button.

Mandatory screenshot:
http://i425.photobucket.com/albums/pp337/fredpel/Ejecter/shot2.jpg

It is written in Vala, so no overhead due to vm like Python (it is compiled as C code) and no strange requirements once compiled (just GTK/GLib). Installation instructions (really simple) and requirements are included in the source tarball.

I'd like to have some feedback about it: whether it is useful or not, how can I improve it, any found bug or any suggestion are really appreciated.
I'd also like to collect a nice number of translations in order to release 0.1, and the go on improving it (some features are already planned).
It would be great if somebody could package a .deb of Ejecter (as I don't know how to do it) to make it easier for people to install and test it.

http://launchpad.net/ejecter

Teamgeist
September 26th, 2008, 09:08 AM
I translated it into German.
Where do you want to the .po file to be sent?
email? or should I file a bug in Launchpad?

/edit: translated it on launchpad also. ;-)

lisati
September 26th, 2008, 09:24 AM
I translated it into German.
Where do you want to the .po file to be sent?
email? or should I file a bug in Launchpad?

/edit: translated it on launchpad also. ;-)

Spotted it on launchpad

UbuWu
September 26th, 2008, 02:09 PM
Yes, this is very useful! Perhaps you could even try to get this shipped with jaunty?

UbuWu
September 26th, 2008, 02:15 PM
I put a request for packages on ubuntu as well as getdeb:

https://bugs.launchpad.net/ubuntu/+bug/274782
https://bugs.launchpad.net/getdeb.net/+bug/274783

UbuWu
September 26th, 2008, 02:25 PM
On my intrepid system, configure stops with this message:

pkg-config cannot find gtk+-2.0 >= 2.12.0

Synaptic tells me that I have 2.14.3 installed though.

UbuWu
September 26th, 2008, 03:54 PM
fredp, can you please have a look at the getdeb bug? they also have trouble compiling it.

fredp
September 26th, 2008, 06:34 PM
On my intrepid system, configure stops with this message:

pkg-config cannot find gtk+-2.0 >= 2.12.0

Synaptic tells me that I have 2.14.3 installed though.
Do you have libgtk+2.0-dev packaged installed?

Instead the getdeb bug should be due to a old release of Vala, they're using 0.1.6 but Ejecter needs 0.3 (available in hardy-backports).

UbuWu
September 26th, 2008, 10:03 PM
Ah no didn't have that one (it is called libgtk2.0-dev).

smartboyathome
September 28th, 2008, 05:28 PM
The problem I see is that it uses the system tray (frowned upon). Instead of that, I think it should be an applet for GNOME, and it might have a better chance of getting into Ubuntu (and possibly even GNOME :D).

kostkon
September 28th, 2008, 05:54 PM
It would be great if somebody could package a .deb of Ejecter (as I don't know how to do it) to make it easier for people to install and test it.

http://launchpad.net/ejecter
Since you are using Launchpad it would be a good idea to use your PPA to distribute this app. You'll only need to learn how to make source packages. The rest is done by Launchpad.


The problem I see is that it uses the system tray (frowned upon). Instead of that, I think it should be an applet for GNOME, and it might have a better chance of getting into Ubuntu (and possibly even GNOME :D).
You can debate whether it should appear in the system tray or not, since it is a fact that the tray functionality is abused by some apps.

But since the dev wants it to appear only when a device is plugged (i.e. to also act as an notification), then I don't think this could have been done easily if it was an applet.

It could be changed to an applet, of course, and have its icon change when a device is plugged or something similar; but this has the added requirement that the user adds it to his/her panel.

fredp
September 29th, 2008, 01:15 PM
Since you are using Launchpad it would be a good idea to use your PPA to distribute this app. You'll only need to learn how to make source packages. The rest is done by Launchpad.


I'll have a look.



You can debate whether it should appear in the system tray or not, since it is a fact that the tray functionality is abused by some apps.

But since the dev wants it to appear only when a device is plugged (i.e. to also act as an notification), then I don't think this could have been done easily if it was an applet.

It could be changed to an applet, of course, and have its icon change when a device is plugged or something similar; but this has the added requirement that the user adds it to his/her panel.

Yes, I thought about making this an applet, but I went for using the system tray because I wanted Ejecter to be invisible when it has no function (i.e. no device connected). Also, Ejecter in this way is not tied to Gnome, and can be used within other DEs.

UbuWu
September 29th, 2008, 02:01 PM
It is now available from getdeb.

Stefanie
September 29th, 2008, 03:56 PM
nice app. it would be perfect if it could be used to mount drives as well. now the unmounted drives are greyed out but clicking on them doesn't mount them again.

fredp
September 29th, 2008, 08:19 PM
nice app. it would be perfect if it could be used to mount drives as well. now the unmounted drives are greyed out but clicking on them doesn't mount them again.
Could be a nice idea, please file a bug at launchpad.net/ejecter.


Glad to see Ejecter available at getdeb.net :D

Stefanie
September 30th, 2008, 09:13 AM
I filed the bug report and I also added a Dutch translation.

fredp
September 30th, 2008, 02:20 PM
I filed the bug report and I also added a Dutch translation.
Thank you very much :D

fredp
October 24th, 2008, 09:06 PM
Just released Ejecter 0.1 "Cosmos rocks"!

Finally featuring translations, bugfixes and the icon that disappears.

You find all the info here: http://launchpad.net/ejecter/+announcement/1299

fredp
December 15th, 2008, 02:34 PM
Released Ejecter 0.1.90

After some time I got back onto Ejecter and tried to fix the issues which came out with Gtk 2.14 (on which it depends).
This version is meant as a preliminary release before 0.2, in order to test new features and fixes.

For 0.2 I hope to distribute .debs through my ppa and not to have to depend on Gtk >= 2.14 (in that case loosing some minor things, so I've to find out how to check at compile-time if I can use new functions from 2.14).

Download & file bugs at: http://launchpad.net/ejecter/+announcement/1626 (https://launchpad.net/ejecter/+announcement/1626)

tramir
June 7th, 2009, 08:36 AM
Is there any way to modify the "eject" command so that it runs the script at http://elliotli.blogspot.com/2009/01/safely-remove-usb-hard-drive-in-linux.html after unmounting?