1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
--- Bottles-51.17-orig/bottles/frontend/windows/main_window.py 2024-12-16 15:51:36.698984715 +0100
+++ Bottles-51.17/bottles/frontend/windows/main_window.py 2024-12-16 15:52:53.643256360 +0100
@@ -99,34 +99,34 @@
manager = Adw.StyleManager.get_default()
manager.set_color_scheme(Adw.ColorScheme.FORCE_DARK)
- # Be VERY explicit that non-sandboxed environments are unsupported
- if not Xdp.Portal.running_under_sandbox():
+ # # Be VERY explicit that non-sandboxed environments are unsupported
+ # if not Xdp.Portal.running_under_sandbox():
- def response(dialog, response, *args):
- if response == "close":
- quit(1)
-
- body = _(
- "Bottles is only supported within a sandboxed environment. Official sources of Bottles are available at"
- )
- download_url = "usebottles.com/download"
-
- error_dialog = Adw.AlertDialog.new(
- _("Unsupported Environment"),
- f"{body} <a href='https://{download_url}' title='https://{download_url}'>{download_url}.</a>",
- )
-
- error_dialog.add_response("close", _("Close"))
- error_dialog.set_body_use_markup(True)
- error_dialog.connect("response", response)
- error_dialog.present(self)
- logging.error(
- _(
- "Bottles is only supported within a sandboxed format. Official sources of Bottles are available at:"
- )
- )
- logging.error("https://usebottles.com/download/")
- return
+ # def response(dialog, response, *args):
+ # if response == "close":
+ # quit(1)
+
+ # body = _(
+ # "Bottles is only supported within a sandboxed environment. Official sources of Bottles are available at"
+ # )
+ # download_url = "usebottles.com/download"
+
+ # error_dialog = Adw.AlertDialog.new(
+ # _("Unsupported Environment"),
+ # f"{body} <a href='https://{download_url}' title='https://{download_url}'>{download_url}.</a>",
+ # )
+
+ # error_dialog.add_response("close", _("Close"))
+ # error_dialog.set_body_use_markup(True)
+ # error_dialog.connect("response", response)
+ # error_dialog.present(self)
+ # logging.error(
+ # _(
+ # "Bottles is only supported within a sandboxed format. Official sources of Bottles are available at:"
+ # )
+ # )
+ # logging.error("https://usebottles.com/download/")
+ # return
# Loading view
self.page_loading = LoadingView()
|