coyim icon indicating copy to clipboard operation
coyim copied to clipboard

Removal of automatic .desktop file creation

Open PolarianDev opened this issue 1 year ago • 0 comments

Hello,

When packaging coyim I realise coyim keeps inserting a .desktop file which is hard coded into the codebase into the users local application directory.

This is undesirable behaviour when packaged, so I attempted to remove it, I thought it would be easy enough:

  1. Delete https://github.com/coyim/coyim/blob/main/gui/install.go (this only appears to contain logic for creating the .desktop file and is not needed for packaged variant)
  2. Remove the following line to prevent invoking a missing file: https://github.com/coyim/coyim/blob/main/gui/ui.go#L108

However when compiling and running coyim with this code stripped, its still generates the desktop file even with this code missing. What else do I need to strip to remove this behaviour as it messes up with coyim AUR package after first execution.

Thank you, Polarian

PolarianDev avatar Jun 20 '23 22:06 PolarianDev