- 5 Posts
- 8 Comments
It’s likely because it can’t access X11 or Wayland. To fix this, try editing the files in
/home/your_username/.local/share/flatpak/overrides/like I mentioned earlier. Specifically, look for thesocketsline and make sure it includeswayland,x11, andx11-fallbacklikesockets=wayland;x11;x11-fallback;. This should help you launch flatpaks that need X11 access.
man 1 flatpak-overrideOverrides the application specified runtime requirements. This can be used to grant a sandboxed application more or less resources than it requested.
By default the application gets access to the resources it requested when it is started. But the user can override it on a particular instance by specifying extra arguments to flatpak run, or every time by using flatpak override.
The application overrides are saved in text files residing in $XDG_DATA_HOME/flatpak/overrides in user mode.
Scroll down, you will see the
--resetoption to remove the overrides.I noticed you used
sudoto run the command, so I think the override files are stored in/var/lib/flatpak/overrides/. To get everything back to normal, try deleting everything inside that directory.If you want to override the system-wide settings, you can create files in the same format as the ones in
/var/lib/flatpak/overrides/, but put them in/home/your_username/.local/share/flatpak/overrides/.To generate the pre-config settings for a flatpak, you can use the
flatpak -m info app_idcommand. This will show you some info about the flatpak, and the-moption will print out the metadata. You can also save this info to a file by runningflatpak -m info app_id > ~/.local/share/flatpak/overrides/app_id.When you edit the file, pay attention to the
Context,System Bus Policy, andSession Bus Policysections and delete everything else. By default, flatpak is set to share some resources, but you can deny access by adding an exclamation mark before the resource, for example, you could changeshared=networktoshared=!network.If you’re looking for a user-friendly way to manage flatpak permissions, I recommend checking out
flatseal. It’s a great GUI tool that can make it easier for you in this case.That being said, it’s always a good idea to be cautious when using commands posted online. Make sure you understand what you’re doing before copying and pasting anything into your terminal. And if you’re ever unsure about something, there are some great resources available to help you out.
One of the best places to start is the Arch wiki, and I think,
manis a friend everybody needs!
If you want to share your script with others, I think it’s a good idea to make it as easy to read as possible.
If you’re just keeping it for yourself, that’s fine. But if you’re sharing it with me, the more readable it is, the easier I’ll be able to understand what you’re trying to do and how you’re solving the problem. This will make it easier for us to discuss ideas and improvements together. To be honest, one-liners can be a bit confusing because they can do multiple things at once. Breaking things down into individual steps makes it easier for me to follow along and for you to understand why you made certain decisions.
Plus, it’s a good habit to get into for your own future reference - you’ll be able to look back and understand your thought process more easily.
As the famous saying from SICP goes:
programs must be written for people to read, and only incidentally for machines to execute
DollyDuller@programming.devto
Asklemmy@lemmy.ml•Are you a fan of podcasts? If so, which ones would you recommend?English
3·1 year agoChalk Radio from MIT OpenCourseWare
I really enjoy this podcast. It’s great to hear that the professors at MIT share their passion and expertise with students and the wider world. One of my favorite episodes is Prof. Eric Grimson’s story about making computer science more accessible to everyone. It’s really motivating to think that there are so many talented teachers and resources available, which makes me feel confident and excited to keep learning on my own.
DollyDuller@programming.devOPto
Technology@lemmy.world•Help Us Hack The Software Industry!!!English
84·1 year agoThis isn’t an echo chamber. You and I are on Lemmy, and we, lemmings, love free and open-source software. But I bet you that many people still use proprietary software as their daily drivers. Many of them still use Windows as their main OS, and many are still on iOS. However, that’s not the end of the story. They also use plenty of FOSS software, like Firefox, VLC (you can’t deny the love of people for VLC), OBS, and qBittorrent. And that’s a good thing! It’s not a binary choice that you have to either go this way or this way. That’s not healthy.
Even if this is an echo chamber, so what? I see it as an effort to set a norm for the community. ‘Hey, I love Linux, you should try it!’ ‘I have the same experience, you should give it a go.’ ‘I’ve used Linux for a long time and I love it, feel free to ask me any questions.’ When there are many people willing to help, others are less scared to try new things. And when we move together, we fear nothing!
DollyDuller@programming.devto
Games@lemmy.world•What are some video game quotes that is stuck in your head?English
2·1 year agoDo you like hurting other people?
DollyDuller@programming.devto
Privacy@lemmy.ml•What are some controversial privacy topics?English
3·1 year agoThe answer for 1 from EFF: Is my phone listening to me?







Yes, they are different because they are for different flatpak applications.
What’s in the files? Do they have a line called
sockets? Is that line set tox11orx11-fallback? Have you tried adding those options likesockets=wayland;x11;x11-fallback? I usually get an error saying I can’t connect to the display or that X is missing when I revoke access tox11orwayland. Or did you removex11from your system?