Class: Factorix::Runtime::Linux
- Defined in:
- lib/factorix/runtime/linux.rb
Overview
Linux runtime environment
Provides default paths for Steam installation on Linux. Users with non-Steam installations (standalone, Flatpak, Snap, etc.) should configure paths via the configuration file. See Runtime::UserConfigurable for configuration instructions.
Instance Method Summary collapse
-
#data_dir ⇒ Pathname
Get the Factorio data directory path.
-
#executable_path ⇒ Pathname
Get the Factorio executable path.
-
#user_dir ⇒ Pathname
Get the Factorio user directory path.
Methods inherited from Base
#current_log_path, #factorix_cache_dir, #factorix_config_path, #factorix_log_path, inherited, #launch, #lock_path, #mod_dir, #mod_list_path, #mod_settings_path, #player_data_path, #previous_log_path, #running?, #save_dir, #script_output_dir, #xdg_cache_home_dir, #xdg_config_home_dir, #xdg_data_home_dir, #xdg_state_home_dir
Instance Method Details
#data_dir ⇒ Pathname
Get the Factorio data directory path
This directory contains the base game data and built-in expansion MODs.
29 |
# File 'lib/factorix/runtime/linux.rb', line 29 def data_dir = Pathname(Dir.home) + ".steam/steam/steamapps/common/Factorio/data" |
#executable_path ⇒ Pathname
Get the Factorio executable path
Returns the default Steam installation path on Linux.
17 |
# File 'lib/factorix/runtime/linux.rb', line 17 def executable_path = Pathname(Dir.home) + ".steam/steam/steamapps/common/Factorio/bin/x64/factorio" |
#user_dir ⇒ Pathname
Get the Factorio user directory path
22 |
# File 'lib/factorix/runtime/linux.rb', line 22 def user_dir = Pathname(Dir.home) + ".factorio" |