Set application desktop icon (under Linux) while debugging?
When running in Linux, can the desktop icon for an application be set/controlled when running it from the PyCharm debugger?
I run PyCharm under Ubuntu, using the GNOME desktop manager (though this probably applies to all Linux desktops). My application is invoked as `python3 home.py`, and this is effectively the setting I have in PyCharm's Run/Debug Configurations.
When the desktop manager launches an "unknown" application it puts a (temporary) icon in its "Launcher" as an anonymous grey icon with a question mark. I have just defined a `myapp.desktop` file with the necessary entries, so that my application has an associated icon which it now shows.
If I launch my application from Ubuntu desktop I now get its nice icon in the "Launcher" instead, just as it should be. And this works too from PyCharm if I use the Run command.
However, if I use PyCharm's Debug command, it still shows with the "anonymous" icon. Doubtless something to do with however PyCharm launches processes for debug. Is there anything I can do to get PyCharm debug to somehow pick up the icon which it would use it the app were run directly?
请先登录再写评论。