NeilBrown
2012-07-16 02:41:03 UTC
Hi,
I often plug in, then un-plug, usb/SD etc storage devices.
When I plug them in, a new thunar window appears which is good and useful.
When I unplug them, the window doesn't disappear but rather changes to
display the parent (/media).
Doing this several times results in a growing collection of windows which
just get in my way. Obviously I can close them but that is just another
action required that disrupts my workflow.
Is it possible to tell thunar to close the window when the directory
disappears?
If a code change is required I'm happy to try making it myself (I've spent a
little while exploring the code, but haven't tried building it yet).
I've found 'thunar_list_model_folder_destroy' which I think is called when
the folder is deleted - can I add something there to destroy the window?
Thanks,
NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20120716/40e254f9/attachment.pgp>
I often plug in, then un-plug, usb/SD etc storage devices.
When I plug them in, a new thunar window appears which is good and useful.
When I unplug them, the window doesn't disappear but rather changes to
display the parent (/media).
Doing this several times results in a growing collection of windows which
just get in my way. Obviously I can close them but that is just another
action required that disrupts my workflow.
Is it possible to tell thunar to close the window when the directory
disappears?
If a code change is required I'm happy to try making it myself (I've spent a
little while exploring the code, but haven't tried building it yet).
I've found 'thunar_list_model_folder_destroy' which I think is called when
the folder is deleted - can I add something there to destroy the window?
Thanks,
NeilBrown
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/thunar-dev/attachments/20120716/40e254f9/attachment.pgp>