Git Product home page Git Product logo

Comments (5)

clefebvre avatar clefebvre commented on May 10, 2024

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.

from hypnotix.

ichristophe56 avatar ichristophe56 commented on May 10, 2024

from hypnotix.

ItzSwirlz avatar ItzSwirlz commented on May 10, 2024

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.

from hypnotix.

clefebvre avatar clefebvre commented on May 10, 2024

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.

from hypnotix.

ItzSwirlz avatar ItzSwirlz commented on May 10, 2024

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.

from hypnotix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.