I created a desktop shortcut to launch Android Studio - studio.desktop. But I just can't get it to run. Ubuntu 22.04 keeps popping up a dialog Untrusted Desktop File
This .desktop file is not trusted, it can not be launched. To enable launching, right-click, then:
**Enable "Allow Launching"**
But this dialog has only "Close" button. And on the Destop, wherever I right-click, I don't see any "Allow Launching". Okay, I thought - try to do this by terminal.
I have already tried a whole mountain of commands, but they do not help.
chmod a+x studio.desktop // Just in case, although I previously did it through the Permissions of the shortcut itself
dbus-launch gio set studio.desktop "metadata::trusted" yes
That didn't show any message and launching is still not allowed. Then i try this:
sudo gio set studio.desktop metadata::trusted true
This return message "gio: Setting attribute metadata::trusted not supported"
I also tried:
sudo desktop-file-install studio.desktop
As you probably guessed, also to no avail.
This is my studio.desktop:
[Desktop Entry]
Comment=Run Android Studio link
Exec=bash -c /home/user/android-studio/bin/studio.sh
GenericName=Android Studio
Icon=/home/user/android-studio/bin/studio.png
Name=Android Studio
Type=Application
Terminal=false