UbuntuBudgie / budgie-extras

Additional Budgie Desktop enhancements for user experience
https://ubuntubudgie.org
GNU General Public License v3.0
177 stars 34 forks source link

removable drive applet #48

Closed fossfreedom closed 6 years ago

fossfreedom commented 6 years ago

... this is just a reminder for me to have a look at some point:

"removable drive indicator which pops up when the drive is inserted like in the gnome shell extension"

Jacob-Vlijm commented 6 years ago

To be created you mean?

fossfreedom commented 6 years ago

I'm interested but havent investigated if this is possible. I'm aware there is a gnome-shell extension but havent looked at where the code is located, ... and whether such code is possible to port

Jacob-Vlijm commented 6 years ago

What exactly should pop up (and how?) And which shell extension?

fossfreedom commented 6 years ago

https://extensions.gnome.org/extension/7/removable-drive-menu/

Jacob-Vlijm commented 6 years ago

Nice applet. I don't think it has a popup, or do you mean a notification like this: https://askubuntu.com/a/829981/72216?

fossfreedom commented 6 years ago

as I said - haven't investigated - but I more interested in an applet that becomes visible when a thumb-drive (for example) is inserted - a notification is sent (similar to that answer probably) and then you can mount/umount/open directly from the applet.

If the applet detects removable drives on login then it automatically displays itself - without notifications being displayed. notify-send is only used for newly inserted drives.

Jacob-Vlijm commented 6 years ago

pyudev seems extremely useful and straightforward as a starting point to create such an applet. Go for it? https://pyudev.readthedocs.io/en/latest/

fossfreedom commented 6 years ago

I want to have a closer look at the current in-built places applet first - see if there is something simple that can be done here.
Didnt know about pyudev - thanks for the reference - will read that as well. cheers

fossfreedom commented 6 years ago

After second thought thoughts the places applet is better placed for this. The places pop over widget needs a signal attached to it. Then in the applet a connection signal can be made. When invoked the pop over can be toggled.

In the pop over itself the new connection methods should call the function with an additional parameter. This parameter value is recognised by the refresh widgets function and an emit signal is sent ... this the connected applet will perform the toggle open.

Jacob-Vlijm commented 6 years ago

I think this is solved now by the DropBy Applet https://github.com/UbuntuBudgie/budgie-extras/tree/master/budgie-dropby