How do I fix ‘Permission Denied’ with Flatpak shortcuts using Alt+F2?

0
21
Asked By TechSavvyPenguin93 On

Hey everyone! I've been using Linux for a few months now, running Zorin 17.3 alongside Windows 10, and I really enjoy using the Alt+F2 shortcut for the 'run command' feature. I've been setting up shortcuts for my apps, which I've added to my PATH, including those installed via apt and Flatpak.

Recently, I've run into some issues where I get a "Permission denied" message when trying to launch certain Flatpak apps through the Alt+F2 shortcut. For example, I have a shortcut set up to open GIMP with the command `flatpak run org.gimp.GIMP`, and while it works in the terminal, it fails to launch using the Alt+F2 shortcut.

This problem seems to be inconsistent and specific to Flatpaks since other apps like Lutris and Discord work fine. Can anyone help me understand how to give the necessary permissions to the Alt+F2 command to resolve this? I also learned from a helpful response that adding a shebang and making my script executable helped. Still, I'd like to know why this discrepancy occurs in the first place. Thanks!

2 Answers

Answered By HelpfulWanderer82 On

It sounds like your issue might not be a straightforward permission problem. Instead of getting a clear "permission denied" error, check if your desktop environment logs the output from commands run via Alt+F2 somewhere, like the syslog or systemd’s journal. Those logs might give more insight into what's really going wrong. I'd suggest looking into those logs to diagnose it further.

Answered By CuriousCoder99 On

If you’re getting an output in the terminal but not through Alt+F2, it could be due to differences in how those two environments handle permissions. Make sure your Flatpak installations are set up correctly and perhaps try running the command with different options to see if anything changes. Also, checking the logs in GNOME might give you clues about what’s happening.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.