bottles-unwrapped: 51.17 -> 51.21#403938
Conversation
|
Libadwaita was upgraded in that PR: #386514 I guess working on that might be unblocked now :) (or after a successful build of unstable) |
|
Gliczy
left a comment
There was a problem hiding this comment.
Some additional sandbox checks were added in 51.18 (see bottlesdevs/Bottles@91e2798), which we need to patch out.
diff --git a/bottles/frontend/meson.build b/bottles/frontend/meson.build
index 6ff7c011..c26ea0b9 100644
--- a/bottles/frontend/meson.build
+++ b/bottles/frontend/meson.build
@@ -23,12 +23,6 @@ params_file = configure_file(
configuration: conf
)
-fs = import('fs')
-
-if not fs.is_file('/' + '.flatpak-info')
- error('file does not exist')
-endif
-
bottles_sources = [
'__init__.py',
'main.py',
diff --git a/bottles/frontend/views/bottle_details.py b/bottles/frontend/views/bottle_details.py
index 65667ea9..7ae1eb19 100644
--- a/bottles/frontend/views/bottle_details.py
+++ b/bottles/frontend/views/bottle_details.py
@@ -436,20 +436,19 @@ class BottleView(Adw.PreferencesPage):
dialog.connect("response", execute)
dialog.show()
- if Xdp.Portal.running_under_sandbox():
- if self.window.settings.get_boolean("show-sandbox-warning"):
- dialog = Adw.MessageDialog.new(
- self.window,
- _("Be Aware of Sandbox"),
- _(
- "Bottles is running in a sandbox, a restricted permission environment needed to keep you safe. If the program won't run, consider moving inside the bottle (3 dots icon on the top), then launch from there."
- ),
- )
- dialog.add_response("dismiss", _("_Dismiss"))
- dialog.connect("response", show_chooser)
- dialog.present()
- else:
- show_chooser()
+ if self.window.settings.get_boolean("show-sandbox-warning"):
+ dialog = Adw.MessageDialog.new(
+ self.window,
+ _("Be Aware of Sandbox"),
+ _(
+ "Bottles is running in a sandbox, a restricted permission environment needed to keep you safe. If the program won't run, consider moving inside the bottle (3 dots icon on the top), then launch from there."
+ ),
+ )
+ dialog.add_response("dismiss", _("_Dismiss"))
+ dialog.connect("response", show_chooser)
+ dialog.present()
+ else:
+ show_chooser()
def __backup(self, widget, backup_type):
"""
diff --git a/bottles/frontend/views/bottle_preferences.py b/bottles/frontend/views/bottle_preferences.py
index 288e693b..b8b57618 100644
--- a/bottles/frontend/views/bottle_preferences.py
+++ b/bottles/frontend/views/bottle_preferences.py
@@ -139,7 +139,7 @@ class PreferencesView(Adw.PreferencesPage):
self.queue = details.queue
self.details = details
- if not gamemode_available or not Xdp.Portal.running_under_sandbox():
+ if not gamemode_available:
return
_not_available = _("This feature is unavailable on your system.")
diff --git a/bottles/frontend/views/list.py b/bottles/frontend/views/list.py
index 43ab9c22..a283b178 100644
--- a/bottles/frontend/views/list.py
+++ b/bottles/frontend/views/list.py
@@ -82,8 +82,6 @@ class BottlesBottleRow(Adw.ActionRow):
def run_executable(self, *_args):
"""Display file dialog for executable"""
- if not Xdp.Portal.running_under_sandbox():
- return
def set_path(_dialog, response):
if response != Gtk.ResponseType.ACCEPT:
diff --git a/bottles/frontend/views/new_bottle_dialog.py b/bottles/frontend/views/new_bottle_dialog.py
index a8b007d4..c6f0a156 100644
--- a/bottles/frontend/views/new_bottle_dialog.py
+++ b/bottles/frontend/views/new_bottle_dialog.py
@@ -80,7 +80,7 @@ class BottlesNewBottleDialog(Adw.Dialog):
super().__init__(**kwargs)
# common variables and references
self.window = GtkUtils.get_parent_window()
- if not self.window or not Xdp.Portal.running_under_sandbox():
+ if not self.window:
return
self.app = self.window.get_application()
I reviewed all commits between 51.17 and 51.21, this should be the only things that we must patch out.
Also, thank you for taking the time to work on this and adding yourself as a maintainer!
Diff: bottlesdevs/Bottles@refs/tags/51.17...refs/tags/51.21 bottles-unwrapped: update remove-flatpack-check.patch according to NixOS#403938 (review)
|
Diff: bottlesdevs/Bottles@refs/tags/51.17...refs/tags/51.21 bottles-unwrapped: update remove-flatpack-check.patch according to #403938 (review) (cherry picked from commit 2a7622d)
|
Successfully created backport PR for |
|
After the update I'm unable to lanch any bottle, any ideas ? |
I'm able to run plant vs zombie from both Bottles page and Library. Could you elaborate how you configured the program and how you started it? |
|
Maybe the runner you chose has been removed? |
|
I'm trying to run existing battle.net bottle, I've also tried to create it from scratch, same issue. Runners look good. |
I'm having the same issue. Clicking on any of the bottles from the bottles tab will do this. This means I can't access the page for a particular bottle unless I'm creating it for the first time (at which point it will transition to the bottle's page automatically). Even creating the bottle from scratch, pressing the back button to return to the bottles page, then clicking on the bottle again in the list will give this error. |
A bit off-topic, but I also run Battle.net, which recently broke (still ran, just unusable). It still started fine after the update and now I could also download |
|
This seems to not only affect the nixpkg, but other non-flatpak packages: bottlesdevs/Bottles#3860 |
@XBagon Adding |
|
I thought we already had |
Diff: bottlesdevs/Bottles@refs/tags/51.17...refs/tags/51.21 bottles-unwrapped: update remove-flatpack-check.patch according to NixOS#403938 (review) (cherry picked from commit 2a7622d)
Diff: bottlesdevs/Bottles@refs/tags/51.17...refs/tags/51.21 bottles-unwrapped: update remove-flatpack-check.patch according to NixOS/nixpkgs#403938 (review) (cherry picked from commit 2a7622d)
Diff: bottlesdevs/Bottles@refs/tags/51.17...refs/tags/51.21
Already a few versions behind, seems to not include newest proton updates.
Sadly requires (at least) libadwaita 1.7 and gtk 4.17, or some heavy patching.
So either needs some time for these to be updated or creative ideas.. which are welcome :).
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.