In ‘settings / developer tools’, activate ‘developer mode’ and give a password. Then ‘Terminal’ appears on the app grid.
Open it, type ‘devel-su’[Enter]. Then enter the password. The prompt ‘defaultuser@yourphone’ changes to ‘root@yourphone’. You’re now root and now you can edit the files in /usr/share/applications/ with the vi commandline editor.
1 Like