Skip to content
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

Open
ItzSwirlz opened this issue Nov 23, 2020 · 5 comments
Open

Hypnotix is viewed as 'hypnotix.py' #24

ItzSwirlz opened this issue Nov 23, 2020 · 5 comments
Assignees

Comments

@ItzSwirlz
Copy link
Contributor

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.

@clefebvre
Copy link
Member

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.

@ichristophe56
Copy link

ichristophe56 commented Dec 2, 2020 via email

@ItzSwirlz
Copy link
Contributor Author

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.

@clefebvre
Copy link
Member

Actually, we're already using setproctitle... the process name is hypnotix.

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.

@clefebvre clefebvre self-assigned this Dec 14, 2020
@ItzSwirlz
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants