Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4468

How to mark a .desktop file as trusted on Ubuntu 22.04?

$
0
0

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 itselfdbus-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 linkExec=bash -c /home/user/android-studio/bin/studio.shGenericName=Android StudioIcon=/home/user/android-studio/bin/studio.pngName=Android StudioType=ApplicationTerminal=false

Viewing all articles
Browse latest Browse all 4468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>