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

Double click on Python script doesn't set cwd #12565

Open
ToboterXP opened this issue Dec 11, 2024 · 0 comments
Open

Double click on Python script doesn't set cwd #12565

ToboterXP opened this issue Dec 11, 2024 · 0 comments
Labels

Comments

@ToboterXP
Copy link

Distribution

Mint 22 Cinnamon

Package version

6.2.9

Graphics hardware in use

No response

Frequency

Always

Bug description

When doubleclicking a .py file in the file manager, it gets executed with /home/username as the cwd

Steps to reproduce

Create a .py file that prints the current working directory and pauses (import os;print(os.getcwd);input()) somewhere that isn't the home directory. Execute it via double click.

Expected behavior

The current working directory should be set to the directory the file is in.

Additional information

No response

@ToboterXP ToboterXP added the BUG label Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant