Skip to content

Commit b475c48

Browse files
authored
bottles-unwrapped: 51.17 -> 51.21 (#403938)
2 parents f58d6d1 + 2a7622d commit b475c48

File tree

4 files changed

+83
-82
lines changed

4 files changed

+83
-82
lines changed

pkgs/by-name/bo/bottles-unwrapped/package.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,20 @@
3131

3232
python3Packages.buildPythonApplication rec {
3333
pname = "bottles-unwrapped";
34-
version = "51.17";
34+
version = "51.21";
3535

3636
src = fetchFromGitHub {
3737
owner = "bottlesdevs";
3838
repo = "bottles";
3939
tag = version;
40-
hash = "sha256-m4ATWpAZxIBp1X0cNeyNGmt6aIBo/cHH+DpOMkLia0E=";
40+
hash = "sha256-rUS2LRr7NqTvNd706AC/U/QUDcF8tzwkHDuS3R0O1KY=";
4141
};
4242

4343
patches =
4444
[
4545
./vulkan_icd.patch
4646
./redirect-bugtracker.patch
4747
./remove-flatpak-check.patch
48-
./remove-core-tab.patch
4948
]
5049
++ (
5150
if removeWarningPopup then
@@ -132,6 +131,7 @@ python3Packages.buildPythonApplication rec {
132131
psydvl
133132
shamilton
134133
Gliczy
134+
XBagon
135135
];
136136
platforms = lib.platforms.linux;
137137
mainProgram = "bottles";

pkgs/by-name/bo/bottles-unwrapped/remove-core-tab.patch

Lines changed: 0 additions & 76 deletions
This file was deleted.

pkgs/by-name/bo/bottles-unwrapped/remove-flatpak-check.patch

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,80 @@ index 6ff7c011..c26ea0b9 100644
1515
bottles_sources = [
1616
'__init__.py',
1717
'main.py',
18+
diff --git a/bottles/frontend/views/bottle_details.py b/bottles/frontend/views/bottle_details.py
19+
index 65667ea9..7ae1eb19 100644
20+
--- a/bottles/frontend/views/bottle_details.py
21+
+++ b/bottles/frontend/views/bottle_details.py
22+
@@ -436,20 +436,19 @@ class BottleView(Adw.PreferencesPage):
23+
dialog.connect("response", execute)
24+
dialog.show()
25+
26+
- if Xdp.Portal.running_under_sandbox():
27+
- if self.window.settings.get_boolean("show-sandbox-warning"):
28+
- dialog = Adw.MessageDialog.new(
29+
- self.window,
30+
- _("Be Aware of Sandbox"),
31+
- _(
32+
- "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."
33+
- ),
34+
- )
35+
- dialog.add_response("dismiss", _("_Dismiss"))
36+
- dialog.connect("response", show_chooser)
37+
- dialog.present()
38+
- else:
39+
- show_chooser()
40+
+ if self.window.settings.get_boolean("show-sandbox-warning"):
41+
+ dialog = Adw.MessageDialog.new(
42+
+ self.window,
43+
+ _("Be Aware of Sandbox"),
44+
+ _(
45+
+ "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."
46+
+ ),
47+
+ )
48+
+ dialog.add_response("dismiss", _("_Dismiss"))
49+
+ dialog.connect("response", show_chooser)
50+
+ dialog.present()
51+
+ else:
52+
+ show_chooser()
53+
54+
def __backup(self, widget, backup_type):
55+
"""
56+
diff --git a/bottles/frontend/views/bottle_preferences.py b/bottles/frontend/views/bottle_preferences.py
57+
index 288e693b..b8b57618 100644
58+
--- a/bottles/frontend/views/bottle_preferences.py
59+
+++ b/bottles/frontend/views/bottle_preferences.py
60+
@@ -139,7 +139,7 @@ class PreferencesView(Adw.PreferencesPage):
61+
self.queue = details.queue
62+
self.details = details
63+
64+
- if not gamemode_available or not Xdp.Portal.running_under_sandbox():
65+
+ if not gamemode_available:
66+
return
67+
68+
_not_available = _("This feature is unavailable on your system.")
69+
diff --git a/bottles/frontend/views/list.py b/bottles/frontend/views/list.py
70+
index 43ab9c22..a283b178 100644
71+
--- a/bottles/frontend/views/list.py
72+
+++ b/bottles/frontend/views/list.py
73+
@@ -82,8 +82,6 @@ class BottlesBottleRow(Adw.ActionRow):
74+
75+
def run_executable(self, *_args):
76+
"""Display file dialog for executable"""
77+
- if not Xdp.Portal.running_under_sandbox():
78+
- return
79+
80+
def set_path(_dialog, response):
81+
if response != Gtk.ResponseType.ACCEPT:
82+
diff --git a/bottles/frontend/views/new_bottle_dialog.py b/bottles/frontend/views/new_bottle_dialog.py
83+
index a8b007d4..c6f0a156 100644
84+
--- a/bottles/frontend/views/new_bottle_dialog.py
85+
+++ b/bottles/frontend/views/new_bottle_dialog.py
86+
@@ -80,7 +80,7 @@ class BottlesNewBottleDialog(Adw.Dialog):
87+
super().__init__(**kwargs)
88+
# common variables and references
89+
self.window = GtkUtils.get_parent_window()
90+
- if not self.window or not Xdp.Portal.running_under_sandbox():
91+
+ if not self.window:
92+
return
93+
94+
self.app = self.window.get_application()

pkgs/by-name/bo/bottles-unwrapped/warn-unsupported.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
diff --git a/bottles/frontend/windows/main_window.py b/bottles/frontend/windows/main_window.py
1+
diff --git a/bottles/frontend/windows/window.py b/bottles/frontend/windows/window.py
22
index 79bf0d72..e3a15cb5 100644
3-
--- a/bottles/frontend/windows/main_window.py
4-
+++ b/bottles/frontend/windows/main_window.py
3+
--- a/bottles/frontend/windows/window.py
4+
+++ b/bottles/frontend/windows/window.py
55
@@ -104,29 +104,29 @@ class MainWindow(Adw.ApplicationWindow):
66

77
def response(dialog, response, *args):

0 commit comments

Comments
 (0)