Closed fossfreedom closed 6 years ago
To be created you mean?
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
What exactly should pop up (and how?) And which shell extension?
Nice applet. I don't think it has a popup, or do you mean a notification like this: https://askubuntu.com/a/829981/72216?
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.
pyudev seems extremely useful and straightforward as a starting point to create such an applet. Go for it? https://pyudev.readthedocs.io/en/latest/
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
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.
I think this is solved now by the DropBy Applet https://github.com/UbuntuBudgie/budgie-extras/tree/master/budgie-dropby
... 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"