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-generated .desktop file does not launch, but works in Bottles #3361

Open
billbeans opened this issue May 3, 2024 · 0 comments

Comments

@billbeans
Copy link

Describe the bug

I installed Call of Duty 4 - Modern Warfare from an old DVD I had. It gives you 2 executables: single and multiplayer. I replaced the single player executable with a no dvd crack I found online

The desktop shortcut I generated with Bottles will not launch for single player, but the multiplayer one works. This is exactly what pops up in journalctl when I try launching the single player executable:

May 03 09:51:03 anonpc systemd[2764]: Started Application launched by gnome-shell.
May 03 09:51:03 anonpc systemd[2764]: Started app-flatpak-com.usebottles.bottles-407239.scope.
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: 09:51:03 (INFO) Forcing offline mode 
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: ERROR:root:Config file not exists
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: Traceback (most recent call last):
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:   File "/app/share/bottles/bottles/backend/models/config.py", line 183, in load
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:     raise FileNotFoundError("Config file not exists")
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: FileNotFoundError: Config file not exists
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: INFO:root:Bottles found:
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - cod4
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - thief1
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - DeusEx
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - fallout3-take2
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - Civilization 4
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - stalker
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - If My Heart Had Wings-2
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - Bible Black
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - bioshock32-sound2
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - Dead Space
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - fatestaynight-2
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - haloce2
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - Grand Theft Auto IV
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - oblivion
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]:          - Higurashi When They Cry Hou - Ch.1 Onikakushi
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: 
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: INFO:root:Launching an executable…
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: WARNING:root:Windows path detected. Avoiding validation.
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: INFO:root:Using Wine Starter -- run
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: INFO:root:Using EasyAntiCheat runtime
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: INFO:root:Using BattlEye runtime
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407285]: fsync: up and running.
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407285]: wine: Using setpriority to control niceness in the [-19,19] range
May 03 09:51:03 anonpc cod4--iw3sp--1714746160.464924.desktop[407287]: 002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 Sense Key : Not Ready [current] 
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 Add. Sense: Medium not present - tray open
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00 00 00
May 03 09:51:04 anonpc kernel: I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 4 prio class 2
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_OK cmd_age=0s
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 Sense Key : Not Ready [current] 
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 Add. Sense: Medium not present - tray open
May 03 09:51:04 anonpc kernel: sr 11:0:0:0: [sr0] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 02 00 00 00
May 03 09:51:04 anonpc kernel: I/O error, dev sr0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
May 03 09:51:04 anonpc kernel: Buffer I/O error on dev sr0, logical block 0, async page read
May 03 09:51:04 anonpc cod4--iw3sp--1714746160.464924.desktop[407254]: WARNING:root:ShellExecuteEx exception seems occurred.
May 03 09:51:04 anonpc systemd[2764]: app-flatpak-com.usebottles.bottles-407239.scope: Consumed 1.591s CPU time.

Here are the contents of the desktop file (I changed the name from 'iw3sp' to the actual name of the game, and added 'Game' to the category field):

[Desktop Entry]
Name=Call of Duty 4: Modern Warfare
Exec=flatpak run --command=bottles-cli com.usebottles.bottles run -p iw3sp -b 'cod4' -- %u
Type=Application
Terminal=false
Categories=Application;Game;
Icon=/home/anon/.var/app/com.usebottles.bottles/data/bottles/bottles/cod4/icons/iw3sp.png
Comment=Launch iw3sp using Bottles.
StartupWMClass=iw3sp
Actions=Configure;
[Desktop Action Configure]
Name=Configure in Bottles
Exec=flatpak run com.usebottles.bottles -b 'cod4'

I am able to launch the multiplayer .desktop file then choose single player from the in-game menu.

To Reproduce

  1. Create an iso image of an official game disc for Call of Duty 4
  2. Create a 64 bit gaming bottle with soda-experimental_8.0
  3. Run the setup from the iso
  4. Replace iw3sp.exe with this one
  5. Add shortcut for iw3sp.exe
  6. Choose 'Add Desktop Entry' in the options menu
  7. (Optional) Change name field to 'Call of Duty 4: Modern Warfare' and add 'Game;' to the Categories field
  8. Try to launch from your distribution's application menu

Package

Flatpak from Flathub

Distribution

Ubuntu 22.04

Debugging Information

Official Package: true
Version: '51.11'
DE/WM: ubuntu
Display:
    X.org: true
    X.org (port): :99.0
    Wayland: true
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.5.0-28-lowlatency
Disk:
    Total: 8028270592
    Free: 8028094464
RAM:
    MemTotal: 15.0GiB
    MemAvailable: 5.8GiB
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