xfce4-embed 1.2.0 Xfce 4.10 Xubuntu 12.04 Precise Please add a 'close' item in the Embed Plugin context menu. Currently I use Embed with IMAP Notify and because of a bug in that app I need to restart it rather frequently. At the moment restarting an embedded app is not trivial: pop-out, close, start, embed. The plugin allowed to close an app via its c-menu, then (it seems to me) restarting would be as simple as: close, start.
Seems like IMAP notify needs to be fixed :) Are you proposing that the close menu item would disable embedding until explicitly restarted, or would it immediately attempt to resume embedding after closing? Seems like a reasonable feature, but the semantics are a bit ambiguous. Alternatively, if you have xfce4-embed-plugin set up to launch IMAP Notify, you could create a launcher button next to it that runs "pkill -f imapnotify.py" or something similar. Then xfce4-embed-plugin will immediately re-launch and re-embed IMAP Notify. One button!
(In reply to comment #1) > Seems like IMAP notify needs to be fixed :) > Yes, but it works for the author so he lost interest in further maintaining it. :) > Are you proposing that the close menu item would disable embedding until > explicitly restarted, No. > or would it immediately attempt to resume embedding > after closing? Seems like a reasonable feature, but the semantics are a bit > ambiguous. > Yes, this is what I had in mind: Closing the app and re-starting it manually would make Embed embed it immediately. > Alternatively, if you have xfce4-embed-plugin set up to launch IMAP Notify, > you could create a launcher button next to it that runs "pkill -f > imapnotify.py" or something similar. Then xfce4-embed-plugin will > immediately re-launch and re-embed IMAP Notify. One button! > At the expense of another button on the panel (which in my case is overcrowded). But having 'Close' item in the c-menu seems reasonable to me, since in Embed the window loses WM buttons, and 'Close' is one button that users would want to have.
Reasonable indeed. I'll look into it.
I've added the feature; it's in git now. Please try it out and see if it does what you'd expect. I have it set such that if you didn't specify a launch command, it will immediately attempt to embed a new window. If you DID specify a launch command, it will behave like a manual "pop-out", and will not attempt to launch and embed a window until you say "embed" again (which you can do by simply double-clicking). I also reorganized the menu items a little.
I've tested latest GIT and the new feature seems to work exactly as I expected. Thanks!