Created
November 1, 2020 09:45
-
-
Save dmdotin/a5d70440ac55b9a7791dc356c3e199a0 to your computer and use it in GitHub Desktop.
restrict empty atom file in ubuntu 20 snap editon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HELP : https://discuss.atom.io/t/whenever-i-start-atom-it-opens-a-file-weird-file/75721/8 | |
First Create a Backup | |
sudo cp /var/lib/snapd/desktop/applications/atom_atom.desktop /var/lib/snapd/desktop/applications/atom_atom.desktop.bak | |
To fix it you just need to run this command: | |
sudo sed -i 's/Exec=env BAMF_DESKTOP_FILE_HINT=\/var\/lib\/snapd\/desktop\/applications\/atom_atom.desktop \/snap\/bin\/atom ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false \/usr\/bin\/atom %F/Exec=env BAMF_DESKTOP_FILE_HINT=\/var\/lib\/snapd\/desktop\/applications\/atom_atom.desktop ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false \/snap\/bin\/atom %F/' /var/lib/snapd/desktop/applications/atom_atom.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment