Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Bottles Wine Prefixes #268

Open
Heus-Sueh opened this issue Sep 2, 2023 · 3 comments
Open

Support for Bottles Wine Prefixes #268

Heus-Sueh opened this issue Sep 2, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Heus-Sueh
Copy link

Heus-Sueh commented Sep 2, 2023

What's your idea?

Support for prefixes created by Bottles

The program would scan for wine prefixes in this directory:
~/.var/app/com.usebottles.bottles/data/bottles/bottles

you would also have to give permission for flatpak to be able to access this folder

@Heus-Sueh Heus-Sueh added the enhancement New feature or request label Sep 2, 2023
@mtkennerly
Copy link
Owner

Hi! I'm not too familiar with Bottles. Is there some metadata that ties each prefix to a specific game, or is it an ad hoc/manual thing where you could install one or more games in a single prefix? If they're essentially normal Wine prefixes, then you could configure them in Ludusavi as a Wine prefix root with a glob pattern in the path. However, that would make the scan much slower, since it would have to scan every prefix for every game without some way to narrow it down.

@Heus-Sueh
Copy link
Author

Hi! I'm not too familiar with Bottles. Is there some metadata that ties each prefix to a specific game, or is it an ad hoc/manual thing where you could install one or more games in a single prefix? If they're essentially normal Wine prefixes, then you could configure them in Ludusavi as a Wine prefix root with a glob pattern in the path. However, that would make the scan much slower, since it would have to scan every prefix for every game without some way to narrow it down.

yes, you can install games in the same wineprefix, in this case the wine prefix that the user creates is in this directory: /var/home/<user>/.var/app/com.usebottles.bottles/data/bottles/bottles
image

@VashStampedeTRI14
Copy link

VashStampedeTRI14 commented Oct 12, 2023

Hope this helps but within this folder /home/< user >/.var/app/com.usebottles.bottles/data/bottles/ is a library.yml file that looks like below. This contains the list of all prefixes created within bottles.

61907121-a070-4297-a2d5-a350c7197314:
bottle:
name: Diablo IV
path: Diablo-IV
icon: /home/< user >/.var/app/com.usebottles.bottles/data/bottles/bottles/Diablo-IV/icons/Battle.net.png
id: 2cd58ae9-15fd-41ab-b8c1-28af81cca37f
name: Battle.net
thumbnail: grid:b434b1ad-1377-4e56-9232-d021e9ab4148.png
d76a3e35-1d27-4e78-bfd2-ad39d2cda244:
bottle:
name: Grim Dawn
path: Grim-Dawn
icon: /home/< user >/.var/app/com.usebottles.bottles/data/bottles/bottles/Grim-Dawn/icons/Grim
Dawn.png
id: d907daf0-af13-45ac-85bc-3b10d512397e
name: Grim Dawn
thumbnail: grid:7e73de6d-fd7b-4b1d-ae51-7d7206dfe667.png

Then within each wine prefix is a bottles.yml which contains the .exe, name, ect. Example of this:

Arch: win64
CompatData: ''
Creation_Date: '2023-10-09 16:38:09.736543'
Custom_Path: false
DLL_Overrides: {}
DXVK: dxvk-2.3
Environment: Gaming
Environment_Variables: {}
External_Programs:
d907daf0-af13-45ac-85bc-3b10d512397e:
arguments: ''
dxvk: true
dxvk_nvapi: false
executable: Grim Dawn.exe
folder: /home/< user >/.var/app/com.usebottles.bottles/data/bottles/bottles/Grim-Dawn/drive_c/GOG
Games/Grim Dawn
fsr: false
icon: com.usebottles.bottles-program
id: d907daf0-af13-45ac-85bc-3b10d512397e
name: Grim Dawn
path: /home/< user >/.var/app/com.usebottles.bottles/data/bottles/bottles/Grim-Dawn/drive_c/GOG
Games/Grim Dawn/Grim Dawn.exe
pulseaudio_latency: false
removed: null
script: null
virtual_desktop: false
vkd3d: true
Installed_Dependencies:

  • d3dx9
  • msls31
  • arial32
  • times32
  • courie32
  • d3dcompiler_43
  • d3dcompiler_47
  • vcredist2010
  • vcredist2012
  • vcredist2013
  • vcredist2015
    Language: sys
    LatencyFleX: latencyflex-v0.1.1
    NVAPI: dxvk-nvapi-v0.6.4
    Name: Grim Dawn
    Parameters:
    custom_dpi: 96
    decorated: true
    discrete_gpu: true
    dxvk: true
    dxvk_nvapi: false
    fixme_logs: false
    fsr: false
    fsr_quality_mode: none
    fsr_sharpening_strength: 2
    fullscreen_capture: false
    gamemode: false
    gamescope: false
    gamescope_borderless: false
    gamescope_fps: 0
    gamescope_fps_no_focus: 0
    gamescope_fullscreen: true
    gamescope_game_height: 0
    gamescope_game_width: 0
    gamescope_scaling: false
    gamescope_window_height: 0
    gamescope_window_width: 0
    latencyflex: false
    mangohud: false
    mouse_warp: true
    obsvkc: false
    pulseaudio_latency: false
    renderer: gl
    sandbox: false
    sync: esync
    take_focus: false
    use_be_runtime: true
    use_eac_runtime: true
    use_runtime: false
    use_steam_runtime: false
    versioning_automatic: false
    versioning_compression: false
    versioning_exclusion_patterns: false
    virtual_desktop: false
    virtual_desktop_res: 1280x720
    vkbasalt: false
    vkd3d: true
    vmtouch: false
    vmtouch_cache_cwd: false
    Path: Grim-Dawn
    Runner: lutris-GE-Proton8-17-x86_64
    RunnerPath: ''
    Sandbox:
    share_net: false
    share_sound: false
    State: 0
    Uninstallers: {}
    Update_Date: '2023-10-10 07:28:56.519460'
    VKD3D: vkd3d-proton-2.10
    Versioning: false
    Versioning_Exclusion_Patterns: []
    Windows: win7
    WorkingDir: ''
    data: {}
    run_in_terminal: false
    session_arguments: ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants