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

[Bug]: Bottles not able to set working directory for Run Executable or Add Shortcut. Thus no dll or other relative files are found #3476

Open
taltamir opened this issue Aug 22, 2024 · 0 comments

Comments

@taltamir
Copy link

taltamir commented Aug 22, 2024

Describe the bug

Bottles is not properly setting the working directory for any file executed by "Run Executable" or "Add Shortcuts" buttons.
You have to use command line to manually CD to the correct directory before trying to executable the file.
To execute /home/t/games/age of wonders 4/aow4.exe
assuming you set working directory to /home/t/
what it SHOULD do:

cd age of wonders 4
aow4.exe

but is directly executes just the exe file via some sym link under Z:\\run\\user\\1000\\doc\\62c87a1d\\ where the last number seems to be random

I can execute apps so long as I enter command line tool. CD to their directory. and then run the exe.
But not via the GUI. GUI only works for completely self contained things. such as an installer or very simple apps that have one single exe file and no dependencies.

I also tried placing it in /home/ instead of external drive. same result.
I also tried setting the working directory to the folder of a specific app. And it did not work either. normally my working directory is /media/dext/ which is an external ssd where I keep my games.
I also tried leaving working directory as default instead.

It seems there is something fundamentally different between me opening command line. and the gui executing something within command line.
If I set the working directory for a bottle to be:
/media/t/dext/games_mint/Age of Wonders 4/Age.of.Wonders.4.v.1.007.002.94867
I then click on open command line. it will open
Z:\run\flatpak\doc\cffac413\Age.of.Wonders.4.v.1.007.002.94867>
allowing me to immediately execute the program using aow4.exe and enter.
but if I try to use the gui it will instead give errors such as:
0024:err:module:import_dll Library steam_api64.dll (which is needed by L"Z:\\run\\user\\1000\\doc\\62c87a1d\\AOW4.exe") not found

as can be seen the directory structure is very different between those two.

Here is a sample of 3 attempts:
Bottles issues
top attempt is via Run Executable button. fails due to not finding dll
middle attempt is via add shortcut button and then launching it via 3 dots in terminal mode. fail due to not finding dll
bottom attempt is via command line button within bottles. works

To Reproduce

  1. create bottle in linux mint or LMDE.
  2. use GUI to try to execute a program

Package

Flatpak from Flathub

Distribution

LMDE6, & Linux Mint 21.3

Debugging Information

Official Package: true
Version: '51.13'
DE/WM: cinnamon
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.1.0-23-amd64
Disk:
    Total: 31540113408
    Free: 31539961856
RAM:
    MemTotal: 58.7GiB
    MemAvailable: 51.2GiB
Bottles_envs: null

Troubleshooting Logs

No response

Additional context

No response

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

No branches or pull requests

1 participant