Python Forum

Full Version: Ubuntu Taskbar icon shows title as "Unknown" while hover
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,
I am a new user in python and Qt. I did a small application using PyQt5. It is really wonderful tool. It is working awesome. I face a small issue in ubuntu. I am using FBS to build my App. App and its functionality are working fine in ubuntu.

app.setWindowTitle("my first app")
I am using the following line in my code. it shows the title in my app title bar but the title is not showing in the following places

while I move the cursor over my app icon in ubuntu sidebar, its hover says "unknown"
while I press alt+tab it shows my app icon with the "unknown" as the title.

Guide me to get my App title in those places
I can not reproduce this,

with this example it shows hover Main Window


from PyQt5.QtWidgets import QMainWindow, QApplication

class mainWin(QMainWindow):
    def __init__(self, parent = None):
        super(mainWin, self).__init__(parent)
        self.setupUI()
        
    def setupUI(self):
        self.setWindowTitle("Main Window")
        self.setGeometry(0, 0, 800, 600)


if __name__ == '__main__':
    import sys
    app = QApplication(sys.argv)
    win = mainWin()
    win.show()

    sys.exit(app.exec_())
Are you wanting your application to show that information -- or are you wanting your window after you have started your application to show that information -- the latter is what you are doing the former would be associated with python more than pyqt
Thanks for your reply guys. my actual problem is I am using FBS for an executable generation.
https://github.com/mherrmann/fbs-tutorial
In ubuntu, while I use FBS, it generates the APP. APP working fine. But App Icon in left sidebar not showing the title. it shows "unknown" while mouse over my app icon in ubuntu left bar