-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work well with workspaces #600
Comments
Workspaces are implementation detail of the window manager that you use. The application does not know which workspace it's open in, and whether the other window is opened on the same workspace or not (at least in X11). However, I just tried your scenario in GNOME Flashback (Metacity) and GNOME Shell.
To me, this behavior makes sense. If it does not work in Cinnamon, it means that Cinnamon does not have a feature for notifying you about window being ready in another workspace. If you want to open a file in a new window, you have the following options:
|
|
This is weird and shouldn't happen. Can you launch the first ReText instance from terminal and see if it prints something at that moment? Also, you say ‘sometimes’, but when exactly? I cannot reproduce it, maybe there is some specific step that I should do?
This is your issue #601. I tried to look how Chrome does it, but the code is too complicated. |
but see below.
Always, if the second file is opened from the command line. But not if it is double clicked in Cinnamon. However the above "Unsupported return type" error appears (twice) in either case, so seems not to be relevant to the issue. |
I think this can be safely ignored. When we want to open a file in another ReText window, we use org.qtproject.Qt.QWidget interface, and the introspection code tries to generate an XML with all available methods. One of the methods, QWidget::grab, returns an unsupported type, so it's not included in the XML. But we don't need it.
It is probably issue #594, which is already fixed in master (commit 6f6e5f3). As a workaround, you can pass an absolute path. |
Yes, specifying the absolute path corrects the problem.
…On Wed, Dec 21, 2022 at 3:28 AM Dmitry Shachnev ***@***.***> wrote:
Unsupported return type 4097 QPixmap in method "grab"
Unsupported return type 4097 QPixmap in method "grab"
I think this can be safely ignored. When we want to open a file in another
ReText window, we use org.qtproject.Qt.QWidget interface, and the
introspection code tries to generate an XML with all available methods. One
of the methods, QWidget::grab, returns an unsupported type, so it's not
included in the XML. But we don't need it.
Always, if the second file is opened from the command line. But not if it
is double clicked in Cinnamon. However the above "Unsupported return type"
error appears (twice) in either case, so seems not to be relevant to the
issue.
It is probably issue #594
<#594>, which is already
fixed in master (commit 6f6e5f3
<6f6e5f3>).
As a workaround, you can pass an absolute path.
—
Reply to this email directly, view it on GitHub
<#600 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANSCRBIYF64ODQHJ3WJD4VLWOK5SBANCNFSM6AAAAAASDSQZLM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Rich Holmes
***@***.***
https://about.me/richholmes
|
Using retext 8.0.0 under Linux Mint 21 Cinnamon with Nemo 5.4.3.
Retext does not work well with Cinnamon workspaces.
If I open file a.md in workspace 1, then go into workspace 2 and enter
retext b.md
on the command line, I get a messageOpening the file(s) in the existing window of ReText.
, but in fact the file is not opened at all.If I double click on the b.md icon in a Nemo window in workspace 2, the file is silently opened in the existing window in workspace 1. The result is that nothing appears to happen at all until I switch back to workspace 1 and find the file open there.
On the other hand if I start Retext either from the command line or the panel menu in workspace 2, it opens a new empty window in workspace 2.
My preference is that opening b.md in workspace 2, either on the command line or from Nemo, should cause it to open in a new window in workspace 2.
The text was updated successfully, but these errors were encountered: