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]: Clicking on any of the open folder buttons in bottles opens the file path in Kate instead of in Dolphin (KDE's file manager) #3365

Open
Sevenseraphim opened this issue May 11, 2024 · 4 comments

Comments

@Sevenseraphim
Copy link

Describe the bug

If you click on any folder icon in bottles which is supposed to direct you to the relevant folder it instead opens the file path in Kate which is a text editor and not a file manager. Please see the attached images:
folderopenmark
openskate

To Reproduce

  1. Go to any folder icon in bottles that is supposed to open a path to the directory in the file manager
  2. Click on it
  3. It opens the file path in Kate (text editor) instead of Dolphin (file manager)

Package

Flatpak from Flathub

Distribution

Manjaro (KDE)

Debugging Information

Official Package: true
Version: '51.11'
DE/WM: plasma
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        nvidia:
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
            nvngx_path: /usr/lib/x86_64-linux-gnu/GL/nvidia-550-67/extra/nvidia/wine
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.6.26-1-MANJARO
Disk:
    Total: 8356966400
    Free: 8356786176
RAM:
    MemTotal: 15.6GiB
    MemAvailable: 11.9GiB
Bottles_envs: null

Troubleshooting Logs

No response

Additional context

No response

@Dhizaes
Copy link
Contributor

Dhizaes commented May 11, 2024

It is a xdg bug, not a Bottles bug. This should do the work for Dolphin, probably:
xdg-mime default org.kde.dolphin.desktop inode/directory
xdg-mime default org.kde.dolphin.desktop inode/mount-point

@Sevenseraphim
Copy link
Author

OMG this worked! thank you so much @Dhizaes ! 😊

Can you please explain what xdg is and what those commands do? I don't get it but it worked! 🥳

@Dhizaes
Copy link
Contributor

Dhizaes commented May 11, 2024

It can be simplified to this I think:
https://superuser.com/questions/1559357/what-does-xdg-stand-for

There is a "mimeapps.list" file in your ".config" folder, probably. It defines what should your OS do when that part triggered. Take it as a Default App system. Somehow, text or code editors, takes the default slot for themselves and I don't have any idea why they are doing that. For you, it is Kate; for me, it was VSCode. Also almost same system applies to folders as well and it is stored in "user-dirs.dirs" file, ".config" folder, again.

@Sevenseraphim
Copy link
Author

Thank you for the link and the detailed explanation, I really appreciate it. It's very annoying when something like this happens because the average user has no idea how to fix it and assumes it's a bug with the program itself, I tried looking under default app settings in KDE but of course there's nothing there related to this issue specifically that I could see.

Thanks again and I hope you have a wonderful day! 😊

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

2 participants