File tree Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Expand file tree Collapse file tree 3 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 1
1
extends TabContainer
2
2
3
- var xdg : String = ""
4
-
5
3
func _ready () -> void :
6
4
7
5
# Connect signals
@@ -13,28 +11,24 @@ func _ready() -> void:
13
11
# Change assets according to theme
14
12
get_node ("Credits/Home" ).texture_normal = load ("res://assets/ui/themes/" + Main .settings ["ui_theme" ]+ "/logo.svg" )
15
13
get_node ("Credits/Info/Contact" ).texture_normal = load ("res://assets/ui/themes/" + Main .settings ["ui_theme" ]+ "/logo_dev.svg" )
16
-
17
- # Use xdg
18
- if OS .has_feature ("X11" ):
19
- xdg = "xdg-open "
20
14
21
15
# Signals
22
16
func _on_Home_pressed () -> void :
23
- OS .shell_open (xdg + Main .metadata ["url" ]["home" ])
17
+ OS .shell_open (Main .metadata ["url" ]["home" ])
24
18
25
19
func _on_Contact_pressed () -> void :
26
- OS .shell_open (xdg + Main .metadata ["url" ]["contact" ])
20
+ OS .shell_open (Main .metadata ["url" ]["contact" ])
27
21
28
22
func _on_Changelog_pressed () -> void :
29
23
30
24
var _binary_path : String = OS .get_executable_path ().get_base_dir ()
31
- OS .shell_open (xdg + _binary_path + "/Changelog.pdf" )
25
+ OS .shell_open (_binary_path + "/Changelog.pdf" )
32
26
33
27
func _on_Group_pressed () -> void :
34
- OS .shell_open (xdg + Main .metadata ["url" ]["group" ])
28
+ OS .shell_open (Main .metadata ["url" ]["group" ])
35
29
36
30
func _on_Credits_meta_clicked (meta ) -> void :
37
- OS .shell_open (xdg + str (meta ))
31
+ OS .shell_open (str (meta ))
38
32
39
33
func _on_License_meta_clicked (meta ) -> void :
40
- OS .shell_open (xdg + str (meta ))
34
+ OS .shell_open (str (meta ))
Original file line number Diff line number Diff line change @@ -163,6 +163,7 @@ NinStar
163
163
[b]Donors[/b] [color=#F46FF0]♥[/color]
164
164
Dr. Farinha
165
165
kit
166
+ Platior
166
167
SimpleDimple
167
168
Sam Mayhew
168
169
WonderAliceUwU"
@@ -181,6 +182,7 @@ UnixSocket
181
182
Donors ♥
182
183
Dr. Farinha
183
184
kit
185
+ Platior
184
186
SimpleDimple
185
187
Sam Mayhew
186
188
WonderAliceUwU"
Original file line number Diff line number Diff line change @@ -15,7 +15,4 @@ func confirmation_action() -> void:
15
15
if not Main .metadata ["url" ]["help_" + _locale ].empty ():
16
16
_link = Main .metadata ["url" ]["help_" + _locale ]
17
17
18
- if OS .has_feature ("X11" ):
19
- _link = "xdg-open " + _link
20
-
21
18
OS .shell_open (_link )
You can’t perform that action at this time.
0 commit comments