Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2026, 02:00 PM   #1
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 387
Karma: 518
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
GUI plugins open on other Desktop/Workplace on macOS

The only thing I don't like is the behaviour on the MacBook when the plugin runner starts up on the desktop where Sigil is open, and then the window where the work is done flips to another desktop. But that's the same for all the edit plugins I've got, so it's not a fault of this new plugin - rather, it's a 'feature' of Mac. One that doesn't encourage me to do serious stuff on the Mac.

Last edited by DiapDealer; Yesterday at 01:07 PM.
philja is offline   Reply With Quote
Old 07-29-2026, 02:11 PM   #2
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,844
Karma: 7500000
Join Date: Nov 2009
Device: many
I never see that on either of my Macs. Was a problem sometimes with the older Tk widget library but not with PySide6 so far.

Are you by chance telling macOS to open new apps on another Desktop/Workspace? Or maybe utilizing the Desktop tiling features that MacOS supports (but I personally hate).

Last edited by KevinH; 07-29-2026 at 03:56 PM.
KevinH is offline   Reply With Quote
Old 07-29-2026, 02:32 PM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,626
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Curious if something like this would help avoid losing the gui widget on some machines:

Code:
my_widget.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
placed just before:

Code:
my_widget.show()
There's also:

Code:
my_widget.setWindowFlags(QtCore.Qt.Tool)
Even though it doesn't seem to happen everywhere all the time, I think this behavior might have something to do with widgets that have no parent.
DiapDealer is offline   Reply With Quote
Old 07-29-2026, 03:52 PM   #4
BeckyEbook
Wizard
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 1,009
Karma: 3640080
Join Date: Jan 2017
Location: Poland
Device: Various
I tried adding:

Code:
editor.setWindowFlags(QtCore.Qt.Tool)
and tested it on Windows.

Unfortunately, it introduced an unwanted side effect. If I click on the Sigil main window while the plugin window is open, the plugin window disappears and I have no way to bring it back. Since it is a Qt.Tool window, it doesn't have its own taskbar button, so it becomes effectively inaccessible until the plugin is restarted.

With the current implementation, the plugin window has its own taskbar button on Windows, so even if it gets hidden behind Sigil, it can easily be restored.

I'll also test the suggested change on macOS, since I understand the behavior there may be different.

-----

However, if I use
Code:
editor.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
the plugin window remains above all other windows system-wide, even after switching to another application, which is also not the behavior I'm looking for.
BeckyEbook is offline   Reply With Quote
Old 07-29-2026, 05:40 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,626
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Agreed. Neither of those options would be an acceptable solution.
DiapDealer is offline   Reply With Quote
Old 07-30-2026, 08:19 AM   #6
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 387
Karma: 518
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by KevinH View Post
I never see that on either of my Macs. Was a problem sometimes with the older Tk widget library but not with PySide6 so far.

Are you by chance telling macOS to open new apps on another Desktop/Workspace? Or maybe utilizing the Desktop tiling features that MacOS supports (but I personally hate).
Interesting that you don't have it. I've never consciously told macos to open new apps in another workspace, but it generally does that. And in general, I'm a fan of multiple workspaces, each with a single app (on Linux, & then more recently on Windows 10/11, and also on the Macbook).

What's more confusing on Mac is that 'Desktop' does not equal workspace. If I look at what's there at this moment (which is typical), Finder is open in what is labelled Desktop 1, Firefox is open on Desktop 2, and Desktop 3 is vacant. I can switch freely between them using Control + arrow keys L & R. So, looking at Firefox in Desktop 2, I decide to open Sigil. I click on Sigil in the Dock, and it opens in another workspace. When I press the F3 key, it shows Sigil sitting between Desktop 2 and Desktop 3 and simply named Sigil. It's in a complete window on its own with no Desktop name.

I now run an edit plugin, plugin runner opens on top of Sigil, and then, whoops, I'm diverted to Desktop 1 where the working window of the plugin is displayed.

I searched Apple Settings and don't see any mention of a tiling feature or a switch to launch new apps in another workspace.

I just put it all down to a mac peculiarity - probably not worth spending much time on.
philja is offline   Reply With Quote
Old 07-30-2026, 12:05 PM   #7
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,626
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I don't want to completely junk up Becky's plugin thread with this particular issue, so I'll probably move this conversation into its own thread eventually. But I've found a couple suggestions that the user can try to fix this problem.

1. Change the Dock Settings (Most Common)

macOS remembers where applications are allowed to open. If your Python environment has been assigned to a specific Space, it will force a desktop switch every time you launch it.
  1. Launch your plugin so its app icon appears in the macOS Dock.
  2. Right-click (or two-finger tap) the app icon in the Dock.
  3. Hover over Options.
  4. Under the Assign To section, change the selection from This Desktop or Desktop on Display X to None.
2. Tweak System Space-Switching Behaviors

macOS has a feature that automatically whips you across desktops if it thinks a window is already active elsewhere. You can disable this overarching setting:
  1. Open your Mac's System Settings.
  2. Navigate to Desktop & Dock in the left sidebar.
  3. Scroll down to the Mission Control section.
  4. Toggle off the setting: "When switching to an application, switch to a Space with open windows for the application".
This all came from google searching, so forgive me if the instructions don't actually match macOS's reality.

Last edited by DiapDealer; 07-30-2026 at 01:42 PM.
DiapDealer is offline   Reply With Quote
Old Yesterday, 09:11 AM   #8
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 387
Karma: 518
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by DiapDealer View Post
I don't want to completely junk up Becky's plugin thread with this particular issue, so I'll probably move this conversation into its own thread eventually. But I've found a couple suggestions that the user can try to fix this problem.

1. Change the Dock Settings (Most Common)

macOS remembers where applications are allowed to open. If your Python environment has been assigned to a specific Space, it will force a desktop switch every time you launch it.
  1. Launch your plugin so its app icon appears in the macOS Dock.
  2. Right-click (or two-finger tap) the app icon in the Dock.
  3. Hover over Options.
  4. Under the Assign To section, change the selection from This Desktop or Desktop on Display X to None.
2. Tweak System Space-Switching Behaviors

macOS has a feature that automatically whips you across desktops if it thinks a window is already active elsewhere. You can disable this overarching setting:
  1. Open your Mac's System Settings.
  2. Navigate to Desktop & Dock in the left sidebar.
  3. Scroll down to the Mission Control section.
  4. Toggle off the setting: "When switching to an application, switch to a Space with open windows for the application".
This all came from google searching, so forgive me if the instructions don't actually match macOS's reality.
Sorry - I hadn't meant to hijack Becky's plugin thread.

As for your two suggestions:

1. When an edit plugin is running, a Python icon appears in the Dock. Its Options/Assign to Section setting was already at 'None'

2. Change the Dock settings - this was already the way it was in my MacBook

Thanks for your efforts, DiapDealer - and please feel free to zap this problem to another thread.
philja is offline   Reply With Quote
Old Yesterday, 09:21 AM   #9
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 29,626
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by philja View Post
Sorry - I hadn't meant to hijack Becky's plugin thread.
No blame. We all sort of did it.

Quote:
Originally Posted by philja View Post
As for your two suggestions:

1. When an edit plugin is running, a Python icon appears in the Dock. Its Options/Assign to Section setting was already at 'None'

2. Change the Dock settings - this was already the way it was in my MacBook

Thanks for your efforts, DiapDealer - and please feel free to zap this problem to another thread.
Well that's all I had. Oh well.
DiapDealer is offline   Reply With Quote
Old Yesterday, 04:56 PM   #10
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,844
Karma: 7500000
Join Date: Nov 2009
Device: many
And I can simply not recreate this with any Qt6/PySide6 plugin on either of my MacOS machines.

So some questions:

1. Are you by chance using an external python interpreter for plugins and not the one bundled into Sigil on MacOS?

2. Are you using MacOS 26 Tahoe? Could this be yet another Tahoe related bug?

When I run the EditMetaInEpub3 plugin, its window nicely pops up on top of Sigil and I have do not have to track it down in any way. The python icon in the Task bar can be clicked on at any time to bring the plugin window to the front if it ever gets pushed behind somethign else.

As I said, I am just not seeing this at all and haven't since we moved to PySide6 plugins and away from Tk based plugins.

I will try hunt down why I am not seeing this and you are?
KevinH is offline   Reply With Quote
Old Yesterday, 05:11 PM   #11
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,844
Karma: 7500000
Join Date: Nov 2009
Device: many
And I have attached a screenshot of the settings for "Desktop & Dock" that I use.

I always disable "Stage Manager", and turn off all ways to forcibly tile the windows.
And you can see those and my other settings in the screen shot that is attached.

I am a firm believer that the user putting app windows where he/she wants them and nothing should move or resize them. But that is me.

My guess is you have different settings under the "Mission Control" part of that Settings screen or something else.

You might want to also check your Accessibility settings as many Mac utilities can control desktop assignment and tiling.

Hope something here helps.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-07-31 at 5.05.49 PM.png
Views:	4
Size:	575.9 KB
ID:	224774  

Last edited by KevinH; Yesterday at 05:14 PM.
KevinH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Desktop Kobo MacOS app bkantique Calibre 4 04-26-2026 05:43 PM
plugins on linux with wayland cant build gui kaza Plugins 2 10-23-2023 01:10 AM
Problem running plugins on MacOS BBouy Sigil 22 04-24-2023 12:49 PM
Custom GUI plugins for Calibre here... kiwidude Plugins 299 01-27-2011 06:38 PM
GUI desktop emulates papers and books on physical desktop Bob Russell News 2 06-25-2006 07:42 PM


All times are GMT -4. The time now is 01:51 AM.


MobileRead.com is a privately owned, operated and funded community.