coyim / coyim

coyim - a safe and secure chat client

Home Page:https://coy.im

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removal of automatic .desktop file creation

PolarianDev opened this issue · 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