Reputation: 511
I am running a simple kivy (1.11.1) app on Ubuntu Desktop 18.04 LTS. I am trying to set an icon for my application but nothing seems to be working. I have tried the following so far:
from kivy.config import Config
Config.set('kivy','window_icon','path/to/icon.ico/png')
class MyApp(App):
def build(self):
self.icon = 'myicon.png'
None of them worked. Please advise.
Upvotes: 0
Views: 789
Reputation: 511
I did some research and realized that the Python logo represents the currently running application. Once the code is compiled and packaged as an Ubuntu package, the icon should change as per expectation. One would have to follow specific packaging instructions for a particular platform. Details are available here:
https://kivy.org/doc/stable/guide/packaging.html
Upvotes: 1