Python Forum
[PyQt] Ubuntu Taskbar icon shows title as "Unknown" while hover - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [PyQt] Ubuntu Taskbar icon shows title as "Unknown" while hover (/thread-23949.html)



Ubuntu Taskbar icon shows title as "Unknown" while hover - davidmuni - Jan-24-2020

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


RE: Ubuntu Taskbar icon shows title as "Unknown" while hover - Axel_Erfurt - Jan-24-2020

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_())



RE: Ubuntu Taskbar icon shows title as "Unknown" while hover - Denni - Jan-27-2020

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


RE: Ubuntu Taskbar icon shows title as "Unknown" while hover - davidmuni - Jan-28-2020

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