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

Solution, "open with" problem, with Dolphin. #1406

Closed
MiniMarmotaVorazYT opened this issue Apr 28, 2024 · 12 comments
Closed

Solution, "open with" problem, with Dolphin. #1406

MiniMarmotaVorazYT opened this issue Apr 28, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@MiniMarmotaVorazYT
Copy link

If someone has the problem with "open with" on Dolphin.
First: sudo pacman -S archlinux-xdg-menu
and XDG_MENU_PREFIX=arch- kbuildsycoca6

Sorry, I dont speak English very well. But in this reddit is expleined:
https://www.reddit.com/r/kde/comments/1bd313p/dolphin_not_recognizing_file_associations/

@MiniMarmotaVorazYT MiniMarmotaVorazYT added the bug Something isn't working label Apr 28, 2024
@ashuotaku
Copy link

thank you, so much, it helped me a lot

@kRHYME7 kRHYME7 pinned this issue Apr 28, 2024
@Andrjs
Copy link

Andrjs commented Apr 29, 2024

For me with this method after a while, dolphin still has the "open with" problem.

I found a solution that work for me in this reddit post:
https://www.reddit.com/r/kde/comments/1bd313p/comment/l1jinyf/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

kbuildsycoca6 --noincremental

If it does print this output -> "applications.menu" not found in QList("~/.config/menus", "/etc/xdg/menus"), you will need to get this file

sudo pacman -Sy archlinux-xdg-menu
sudo update-desktop-database
cd /etc/xdg/menus
ls
expected output -> "arch-applications.menu"
sudo mv arch-applications.menu applications.menu

@dieBakterie
Copy link
Contributor

I don't have the problem and i've only downgraded to kservice5 5.115.0-1

@rubiin
Copy link
Contributor

rubiin commented Apr 29, 2024

For me with this method after a while, dolphin still has the "open with" problem.

I found a solution that work for me in this reddit post: reddit.com/r/kde/comments/1bd313p/comment/l1jinyf/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button

kbuildsycoca6 --noincremental

If it does print this output -> "applications.menu" not found in QList("~/.config/menus", "/etc/xdg/menus"), you will need to get this file

sudo pacman -Sy archlinux-xdg-menu sudo update-desktop-database cd /etc/xdg/menus ls expected output -> "arch-applications.menu" sudo mv arch-applications.menu applications.menu

This works, tested on my machine as well

@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 30, 2024

Comment 1 works but don't persist across reboots

To persist any changes

NOTE! This file: /etc/xdg/menus/arch-applications.menu should exist first
copy it to this directory
cp /etc/xdg/menus/*applications.menu ~/.config/menus/applications.menu

if this file does not exist, install sudo pacman -S archlinux-xdg-menu
then run kbuildsycoca6

this will give you errors like this
image

now just do this (User Level) ln -fs /etc/xdg/menus/*applications.menu ~/.config/menus/applications.menu

Edit: use symlinks

@rubiin
Copy link
Contributor

rubiin commented Apr 30, 2024

This can be closed i guess

@kRHYME7 kRHYME7 closed this as completed Apr 30, 2024
@kRHYME7
Copy link
Collaborator

kRHYME7 commented Apr 30, 2024

Will pin this for a month I guess

@ashuotaku
Copy link

ashuotaku commented Apr 30, 2024

Comment 1 works but don't persist across reboots

To persist any changes

NOTE! This file: /etc/xdg/menus/arch-applications.menu should exist first copy it to this directory cp /etc/xdg/menus/*applications.menu ~/.config/menus/applications.menu

if this file does not exist, install sudo pacman -S archlinux-xdg-menu then run kbuildsycoca6

this will give you errors like this image

now just do this cp /etc/xdg/menus/*applications.menu ~/.config/menus/applications.menu

I just created a symlink for that with this command:
sudo ln -sf arch-applications.menu applications.menu

@kRHYME7
Copy link
Collaborator

kRHYME7 commented May 2, 2024

Hello, I tried to remove archlinux-xdg-menu just to see what really are the essential packages needed in fixing this.

Then just tried to fetch the application.menu file from kde repo.

curl -L https://raw.githubusercontent.com/KDE/plasma-workspace/master/menu/desktop/plasma-applications.menu -o $HOME/.config/menus/applications.menu

This works on my system. Can anyone here confirm

Oh do not forget to run kbuildsycoca6 --noincremental

@simplemachine-zz
Copy link

Hello, I tried to remove archlinux-xdg-menu just to see what really are the essential packages needed in fixing this.

Then just tried to fetch the application.menu file from kde repo.

curl -L https://raw.githubusercontent.com/KDE/plasma-workspace/master/menu/desktop/plasma-applications.menu -o $HOME/.config/menus/applications.menu

This works on my system. Can anyone here confirm

Yes. It works.

1- mkdir $HOME/.config/menus/

2- curl -L https://raw.githubusercontent.com/KDE/plasma-workspace/master/menu/desktop/plasma-applications.menu -o $HOME/.config/menus/applications.menu

3 - kbuildsycoca6

Clean solution!

@prasanthrangan
Copy link
Owner

Hey guys, I've uninstalled archlinux-xdg-menu and kservice5, just having the applications.menu config file resolves it.

Skerse pushed a commit to Skerse/hyde-custom that referenced this issue May 7, 2024
@kRHYME7 kRHYME7 unpinned this issue May 16, 2024
@BrayanLope5
Copy link

Can confirm, just using the following steps worked for me with a kde installation and a hyprland installation in the same system.

1- mkdir $HOME/.config/menus/
2- curl -L https://raw.githubusercontent.com/KDE/plasma-workspace/master/menu/desktop/plasma-applications.menu -o $HOME/.config/menus/applications.menu

To make it easier on myself, after downloading, I added the file to my dot files so that it's automatically synced. This is not related to the problem, just thought I mentioned it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

9 participants