Register Guidelines E-Books Today's Posts Search

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: 390
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; 07-31-2026 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,848
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,628
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,628
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: 390
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,628
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 07-31-2026, 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: 390
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 07-31-2026, 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,628
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 07-31-2026, 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,848
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 07-31-2026, 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,848
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:	13
Size:	575.9 KB
ID:	224774  

Last edited by KevinH; 07-31-2026 at 05:14 PM.
KevinH is offline   Reply With Quote
Old Yesterday, 03:52 AM   #12
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: 390
Karma: 518
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by KevinH View Post
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.

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.
Thanks for the suggestions, Kevin. I had Stage Manager disabled and tried variants of what your image showed.

I've spent some time playing around with the macbook and I've found what's causing the problem. It's the way I use the green button.

All mac apps have a set of three colored buttons at the top left and I've always just clicked on the green button to get a full screen window. That act alone zaps Sigil from inside a named Desktop to its own workspace. And then use of an edit plugin always produces the problem with the working window moving to Desktop1.

If, on the other hand, I slide Sigil from its own workspace into a vacant Desktop, it appears half size. Then I hover on the green button and click the 'Fill & Arrange' full screen icon and Sigil expands to full screen and stays within that same named Desktop. Then, the edit plugin works as you expect.

Manually dragging the part sized Sigil to full screen size also keeps Sigil within the named Desktop.

Sadly, Sigil opens with a blank new file and then when I use the dropdown list to open a recent file, the new file opens in another workspace and the problem recurrs.

Since resizing Sigil by the means described above, I can now get Sigil to open in a named Desktop, full size, by double-click on an epub file. It opens in Desktop2, displacing Firefox to Desktop3. Maybe, eventually I can get it into the desired Desktop.

EDIT: Sigil or Mac seems to have learned. Now, when I double-click Sigil in the Dock, it opens a new blank file in Desktop2. Then when I use Sigil's dropdown list to open a recent file, it now opens inside the same Desktop. And I can switch between the two files by right-click
on the Sigil icon in the Dock. The selected file comes up full screen. No need to touch the green button.


I also use Scrivener and i recall asking on their forum why Scriv never opened full size on the Mac. Their dev's reply was that experience had showed them that it caused too many problems (without naming the problems).

When I right-click on the Scriv icon in the Dock, the bubble lists the last few files I have used at the top above the: options, show recents, and open. Clicking on one of those files opens it directly. A click on 'show recents' produces a horizontal alignemnt of Scriv icons with the same files avaialble as shown at the top of the bubble.

Sigil in the Dock does not display any previous recent files , not even when 'show recent' is clicked.

Last edited by philja; Yesterday at 10:54 AM.
philja is offline   Reply With Quote
Old Yesterday, 08:56 AM   #13
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,848
Karma: 7500000
Join Date: Nov 2009
Device: many
Wow, we use very different methods for controlling Window sizing and positioning. I hate full screen and never use it, as it is not really a full screen but instead a new pseudo Desktop. I just set Sigil to the size I want it and it remembers. I drag and drop the epub I am currently working on from a Desktop folder where I keep current projects onto the Sigil icon on my Dock and it opens. All plugins run as expected. Even multiple windows work that way.

Not sure what to tell you, but this appears to be MacOS trying to start up different windows on different Desktops because you are in Full Screen mode much like a kiosk would work. Sorry, I do not think I can help with that. That is simply not an approach that Qt supports or controls well on MacOS.

Last edited by KevinH; Yesterday at 08:59 AM.
KevinH is offline   Reply With Quote
Old Yesterday, 09:48 AM   #14
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,848
Karma: 7500000
Join Date: Nov 2009
Device: many
I read a bit up on Stage Manger and according to the docs it can group two or more apps to the same screen/Desktop. So maybe given your full-screen setup, Stage Manager might help.

FWIW with either the Ctrl or Options buttons help down, clicking the green button should convert it to Maximizing an app Window which grows it as big as it can be without using Full Screen mode. Maybe when maximizing instead of full screen you can get things to work together better. Again, these are things I never use as I do not want to ever track down an App I open.

Last edited by KevinH; Yesterday at 03:12 PM.
KevinH is offline   Reply With Quote
Old Yesterday, 10:01 AM   #15
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,628
Karma: 212299010
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
I almost never maximize a program, and I never use any in full screen/kiosk mode. On any platform. I do a lot of dragging and dropping between applications and file explorer windows.

Last edited by DiapDealer; Yesterday at 10:03 AM.
DiapDealer is offline   Reply With Quote
Reply


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 03:46 AM.


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