-
Notifications
You must be signed in to change notification settings - Fork 153
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
Hypnotix is viewed as 'hypnotix.py' #24
Comments
I'll need to reproduce this before I can fix it... I'll probably see it when testing 20.1 Xfce and MATE. These DE should really use the name that is in the .desktop file but if they didn't, here are a couple of ideas. We can call self.window.set_title("Hypnotix") to set the window name. We can also use the python setproctitle module to set the process name. |
Hypnotix.py ! Je reste
Le mar. 1 déc. 2020 à 12:14, Clement Lefebvre <[email protected]> a
écrit :
… I'll need to reproduce this before I can fix it... I'll probably see it
when testing 20.1 Xfce and MATE.
These DE should really use the name that is in the .desktop file but if
they didn't, here are a couple of ideas.
We can call self.window.set_title("Hypnotix") to set the window name. We
can also use the python setproctitle module to set the process name.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZ76UBY5B64JAHGWDDIXQTSSTFX3ANCNFSM4T7V3ZZA>
.
|
That's a good idea @clefebvre. So I was working on my iHeartRadio Electron Webapp and I noticed GNOME Shell titled the window 'iheartradio-webapp'. I figured out this was because the name of the NPM package name was 'iheartradio-webapp'. The fix was renaming the package to 'iHeartRadio'. It is clear that the whatever the window/process is named after is what it will be called. Technically the baby solution is to just rename hypnotix.py to just "Hypnotix" but that's probably not a good idea. The configuration for the title seems fine, so I'm going to look at other GNOME projects and see what I can do. |
Actually, we're already using setproctitle... the process name is Other than Cinnamon, it's fine also in Xfce and in MATE. There's one place where I see something wrong though... in Xfce's Alt-tab, one label says Hypnotix and the other says Hypnotix py... I get the feeling it's the window title which is not set. |
I have an idea. Setproctitle docs say that setthreadtitle() is a thing. (https://pypi.org/project/setproctitle/) However pip3 claims the latest version is 1.1.10 and this was added in 1.2, so if I can force update proctitle then maybe that will work. |
It says Hypnotix as the main window title-but in GNOME, Dash and the top says it's "Hypnotix.py"
While it may be for Cinnamon mostly, other GTK distros for people using it shouldn't experience this.
The text was updated successfully, but these errors were encountered: