mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Improvements
This commit is contained in:
@@ -133,13 +133,16 @@ class W3DHub
|
||||
"open"
|
||||
end
|
||||
|
||||
# TODO: Change if this correct on Linux
|
||||
user_data_path = "#{Dir.home}/Documents/W3D Hub/games/#{app_id}-#{channel}"
|
||||
|
||||
path = case type
|
||||
when :installation
|
||||
app_data[:install_directory]
|
||||
when :user_data
|
||||
app_data[:install_directory]
|
||||
user_data_path
|
||||
when :screenshots
|
||||
app_data[:install_directory]
|
||||
Dir.exist?("#{user_data_path}/Screenshots") ? "#{user_data_path}/Screenshots" : user_data_path
|
||||
else
|
||||
raise "Unknown folder type: #{type.inspect}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user