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]: commands/open with will not open programs correctly #3639

Open
rockrevenchy opened this issue Dec 28, 2024 · 1 comment
Open

[Bug]: commands/open with will not open programs correctly #3639

rockrevenchy opened this issue Dec 28, 2024 · 1 comment

Comments

@rockrevenchy
Copy link

rockrevenchy commented Dec 28, 2024

Describe the bug

if you try and open an executable via commands or by the option in some DE to "open with" bottles throws an error about the local variable "program" not being associated with a value (and will not open the executable)

if I open bottles and start an executable from within the GUI of the app it works flawlessly, I just cannot for the life of me do this via a command

rockrevenchy@Yggdrasil-Deb:/media/rockrevenchy/HDD/Personal-Files/Downloads/!~exe$ flatpak run com.usebottles.bottles -b Main /home/rockrevenchy/Desktop/CheckDiskPortable_1.4_Development_Release_1_English.paf.exe 

19:40:07 (INFO) Launching with executable: /home/rockrevenchy/Desktop/CheckDiskPortable_1.4_Development_Release_1_English.paf.exe 
19:40:07 (INFO) Launching with URI: ['/home/rockrevenchy/Desktop/CheckDiskPortable_1.4_Development_Release_1_English.paf.exe'] 
19:40:07 (INFO) Forcing offline mode 
Traceback (most recent call last):
  File "/app/bin/bottles-cli", line 758, in <module>
    cli = CLI()
          ^^^^^
  File "/app/bin/bottles-cli", line 236, in __init__
    self.__process_args()
  File "/app/bin/bottles-cli", line 285, in __process_args
    self.run_program()
  File "/app/bin/bottles-cli", line 699, in run_program
    WineExecutor.run_program(bottle, program)
                                     ^^^^^^^
UnboundLocalError: cannot access local variable 'program' where it is not associated with a value

To Reproduce

use the option to open with bottles from the desktop environment or run
flatpak run com.usebottles.bottles
or
flatpak run com.usebottles.bottles -b

Package

Flatpak from Flathub

Distribution

Debian 12 + KDE

Debugging Information

Official Package: true
Version: '51.17'
DE/WM: plasmawayland
Display:
    X.org: true
    X.org (port): :1
    Wayland: true
Graphics:
    vendors:
        nvidia:
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: ''
            nvngx_path: null
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.1.0-28-amd64
Disk:
    Total: 16784588800
    Free: 16784416768
RAM:
    MemTotal: 31.3GiB
    MemAvailable: 24.9GiB
Bottles_envs: null

Troubleshooting Logs

No response

Additional context

Neofetch of my computer

OS: Debian GNU/Linux 12 (bookworm) x86_64 
Kernel: 6.1.0-28-amd64 
Packages: 2819 (dpkg), 15 (flatpak) 
Shell: bash 5.2.15 
Resolution: 1280x1024 
DE: Plasma 5.27.5 
WM: kwin 
Theme: [Plasma], Breeze [GTK2/3] 
Icons: [Plasma], breeze-dark [GTK2/3] 
Terminal: konsole 
CPU: AMD Ryzen 7 3800X (16) @ 3.900GHz 
GPU: NVIDIA GeForce GTX 1660 Ti 
Memory: 6072MiB / 32014MiB 
"""
@jntesteves
Copy link
Contributor

Duplicate of #3599, #3601
This was fixed in #3605, but a new release hasn't been made yet.

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

No branches or pull requests

2 participants