Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Linux
  3. Accidentally screwed flatpak up through override commands, how do I fix?

Accidentally screwed flatpak up through override commands, how do I fix?

Scheduled Pinned Locked Moved Linux
linux
12 Posts 4 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    Guest
    wrote on last edited by
    #1

    Linux causal here.

    Long story short: I've been trying to fiddle with scaling on Kubuntu 24.04 after fixing a broken install, all the flatpak apps suddenly got stuck on x11 mode and refused to use anything else and wouldn't scale at all, tried following some guides online and everything got screwed up, nothing will launch anymore.

    I used sudo flatpak override --system followed by some other stuff, no idea if that was a major mistake or not but that's what the search results recommended.

    Tried reinstalling flatpak, tried reinstalling an app to see if that fixed anything (it didn't), tried to reverse the overrides through other commands (didn't do anything), took a peek at some folders to see if I could delete some configs or something and reset flatpaks settings (couldn't find anything), and a bunch of other stuff, literally nothing works man, no idea what's going on... System apps launch fine, deb apps too, so the system is fine I think, scaling on system apps works, but flatpak and it's apps is completely screwed, won't scale, and now just won't launch whatsoever, help?

    that_leaflet@lemmy.worldT D absgeeknz@lemmy.nzA 3 Replies Last reply
    1
    0
    • System shared this topic on
    • ? Guest

      Linux causal here.

      Long story short: I've been trying to fiddle with scaling on Kubuntu 24.04 after fixing a broken install, all the flatpak apps suddenly got stuck on x11 mode and refused to use anything else and wouldn't scale at all, tried following some guides online and everything got screwed up, nothing will launch anymore.

      I used sudo flatpak override --system followed by some other stuff, no idea if that was a major mistake or not but that's what the search results recommended.

      Tried reinstalling flatpak, tried reinstalling an app to see if that fixed anything (it didn't), tried to reverse the overrides through other commands (didn't do anything), took a peek at some folders to see if I could delete some configs or something and reset flatpaks settings (couldn't find anything), and a bunch of other stuff, literally nothing works man, no idea what's going on... System apps launch fine, deb apps too, so the system is fine I think, scaling on system apps works, but flatpak and it's apps is completely screwed, won't scale, and now just won't launch whatsoever, help?

      that_leaflet@lemmy.worldT This user is from outside of this forum
      that_leaflet@lemmy.worldT This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      Try “flatpak override —user —reset” and “flatpak override —system —reset”.

      ? 1 Reply Last reply
      0
      • that_leaflet@lemmy.worldT [email protected]

        Try “flatpak override —user —reset” and “flatpak override —system —reset”.

        ? Offline
        ? Offline
        Guest
        wrote on last edited by
        #3

        Didn't work sadly, still nothings launches and still gives me the same error in the command line.

        1 Reply Last reply
        0
        • ? Guest

          Linux causal here.

          Long story short: I've been trying to fiddle with scaling on Kubuntu 24.04 after fixing a broken install, all the flatpak apps suddenly got stuck on x11 mode and refused to use anything else and wouldn't scale at all, tried following some guides online and everything got screwed up, nothing will launch anymore.

          I used sudo flatpak override --system followed by some other stuff, no idea if that was a major mistake or not but that's what the search results recommended.

          Tried reinstalling flatpak, tried reinstalling an app to see if that fixed anything (it didn't), tried to reverse the overrides through other commands (didn't do anything), took a peek at some folders to see if I could delete some configs or something and reset flatpaks settings (couldn't find anything), and a bunch of other stuff, literally nothing works man, no idea what's going on... System apps launch fine, deb apps too, so the system is fine I think, scaling on system apps works, but flatpak and it's apps is completely screwed, won't scale, and now just won't launch whatsoever, help?

          D This user is from outside of this forum
          D This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          man 1 flatpak-override

          Overrides 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 --reset option to remove the overrides.

          I noticed you used sudo to 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_id command. This will show you some info about the flatpak, and the -m option will print out the metadata. You can also save this info to a file by running flatpak -m info app_id > ~/.local/share/flatpak/overrides/app_id.

          When you edit the file, pay attention to the Context, System Bus Policy, and Session Bus Policy sections 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 change shared=network to shared=!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, man is a friend everybody needs!

          ? 1 Reply Last reply
          0
          • D [email protected]

            man 1 flatpak-override

            Overrides 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 --reset option to remove the overrides.

            I noticed you used sudo to 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_id command. This will show you some info about the flatpak, and the -m option will print out the metadata. You can also save this info to a file by running flatpak -m info app_id > ~/.local/share/flatpak/overrides/app_id.

            When you edit the file, pay attention to the Context, System Bus Policy, and Session Bus Policy sections 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 change shared=network to shared=!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, man is a friend everybody needs!

            ? Offline
            ? Offline
            Guest
            wrote on last edited by
            #5

            That's definitely handy, gonna bookmark that stuff somewhere for later on, thx! Though I'm not the best with technical stuff or big ol' manuals, and right now I sorta don't have the time or energy to sift through all of it, just wanna fix this issue real quick if possible so I can continue with my day.

            I did check the var lib override folder, nothings there strangely, no hidden files or anything even, completely blank. Scrolled down with the man 1 command in the terminal, also nothings there, what am I looking out for here? Are the overrides gone? Is this a different issues now or? Said something about X server missing when running an app through the terminal, what do I do about that?

            D 1 Reply Last reply
            0
            • ? Guest

              That's definitely handy, gonna bookmark that stuff somewhere for later on, thx! Though I'm not the best with technical stuff or big ol' manuals, and right now I sorta don't have the time or energy to sift through all of it, just wanna fix this issue real quick if possible so I can continue with my day.

              I did check the var lib override folder, nothings there strangely, no hidden files or anything even, completely blank. Scrolled down with the man 1 command in the terminal, also nothings there, what am I looking out for here? Are the overrides gone? Is this a different issues now or? Said something about X server missing when running an app through the terminal, what do I do about that?

              D This user is from outside of this forum
              D This user is from outside of this forum
              [email protected]
              wrote on last edited by
              #6

              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 the sockets line and make sure it includes wayland, x11, and x11-fallback like sockets=wayland;x11;x11-fallback;. This should help you launch flatpaks that need X11 access.

              ? 1 Reply Last reply
              0
              • D [email protected]

                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 the sockets line and make sure it includes wayland, x11, and x11-fallback like sockets=wayland;x11;x11-fallback;. This should help you launch flatpaks that need X11 access.

                ? Offline
                ? Offline
                Guest
                wrote on last edited by
                #7

                Alright I took a look, and all I see are text files of only a few of the apps, nothing else is present as far as I'm seeing right now, and in them there's only a single command of text, all of them are different. Is that normal?

                D 1 Reply Last reply
                0
                • ? Guest

                  Linux causal here.

                  Long story short: I've been trying to fiddle with scaling on Kubuntu 24.04 after fixing a broken install, all the flatpak apps suddenly got stuck on x11 mode and refused to use anything else and wouldn't scale at all, tried following some guides online and everything got screwed up, nothing will launch anymore.

                  I used sudo flatpak override --system followed by some other stuff, no idea if that was a major mistake or not but that's what the search results recommended.

                  Tried reinstalling flatpak, tried reinstalling an app to see if that fixed anything (it didn't), tried to reverse the overrides through other commands (didn't do anything), took a peek at some folders to see if I could delete some configs or something and reset flatpaks settings (couldn't find anything), and a bunch of other stuff, literally nothing works man, no idea what's going on... System apps launch fine, deb apps too, so the system is fine I think, scaling on system apps works, but flatpak and it's apps is completely screwed, won't scale, and now just won't launch whatsoever, help?

                  absgeeknz@lemmy.nzA This user is from outside of this forum
                  absgeeknz@lemmy.nzA This user is from outside of this forum
                  [email protected]
                  wrote on last edited by
                  #8

                  If you are looking to mess with what your flatpaks can do, Flatseal it is really nice for managing permissions, for your flatpaks.

                  It may not be what you are looking for, but though I would drop it in just in case.

                  that_leaflet@lemmy.worldT 1 Reply Last reply
                  0
                  • absgeeknz@lemmy.nzA [email protected]

                    If you are looking to mess with what your flatpaks can do, Flatseal it is really nice for managing permissions, for your flatpaks.

                    It may not be what you are looking for, but though I would drop it in just in case.

                    that_leaflet@lemmy.worldT This user is from outside of this forum
                    that_leaflet@lemmy.worldT This user is from outside of this forum
                    [email protected]
                    wrote on last edited by
                    #9

                    Problem is that it wouldn’t launch for them. Fedora has an RPM for it, but I don’t think Ubuntu does.

                    absgeeknz@lemmy.nzA 1 Reply Last reply
                    0
                    • ? Guest

                      Alright I took a look, and all I see are text files of only a few of the apps, nothing else is present as far as I'm seeing right now, and in them there's only a single command of text, all of them are different. Is that normal?

                      D This user is from outside of this forum
                      D This user is from outside of this forum
                      [email protected]
                      wrote on last edited by
                      #10

                      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 to x11 or x11-fallback? Have you tried adding those options like sockets=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 to x11 or wayland. Or did you remove the x11 from your system?

                      ? 1 Reply Last reply
                      0
                      • D [email protected]

                        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 to x11 or x11-fallback? Have you tried adding those options like sockets=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 to x11 or wayland. Or did you remove the x11 from your system?

                        ? Offline
                        ? Offline
                        Guest
                        wrote on last edited by
                        #11

                        Like I said there's literally nothing in the text files but a single line of text, each application only has one and it's different for each. Some have filesystems=host-etc;host-os, some have something else, and again there's only a few applications here, not everything, and the selection is also very random, some of these are applications I haven't used in a while, really weird.

                        Tried that yeah, didn't do anything at all. X11 is definitely installed, I checked, and all the flatpaks only ran in x11 mode before all of this regardless of what settings I changed through flatseal or command line, so no idea what's going on then. Did I bork flatpak somehow?

                        1 Reply Last reply
                        0
                        • that_leaflet@lemmy.worldT [email protected]

                          Problem is that it wouldn’t launch for them. Fedora has an RPM for it, but I don’t think Ubuntu does.

                          absgeeknz@lemmy.nzA This user is from outside of this forum
                          absgeeknz@lemmy.nzA This user is from outside of this forum
                          [email protected]
                          wrote on last edited by
                          #12

                          True, but I was suggesting Flatseal, more for once the issue was resolved.

                          1 Reply Last reply
                          0
                          • System shared this topic on
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups