I have a application which uses "self-restart" mechanism. It kills itself and runs again. When I run it first time (with
.desktop file) it loads its icon correctly. The problem is that when it restarts itself, it runs its binary and not the
.desktop file. The result is that it does not load the icon. I was thinking about sending the path to
.desktop as an argument of the application and running that instead of the binary.
I would like to ask if it is possible to use the path to
.desktop file as the argument for my application inside the same
Or is there a another way that will keep the icon loaded?
I would like to achieve something like this:
[Desktop Entry] Name=MyApp Exec=myBinary *PathToThisDesktopFile* Type=Application Icon=my_icon.png