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

Fixed file association with symlink desktop entries #288

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

tsujan
Copy link
Member

@tsujan tsujan commented Nov 27, 2022

Previously, the (final) targets of symlink desktop entries were loaded and failed to meet the requirements of mime-type association. The patch solves the problem by loading the symlinks themselves.

I didn't find any side effect in the code or in practice. The only difference I've found is that, if a menu item corresponding to a symlink desktop entry is dragged and dropped, it'll be created as a symlink, not as its target — which isn't a problem and seems more natural to me.

Fixes #287 and closes lxqt/lxqt-config#897

Previously, the (final) targets of symlink desktop entries were loaded and failed to meet the requirements of mime-type association. The patch solves the problem by loading the symlinks themselves.

I didn't find any side effect in the code or in practice. The only difference I've found is that, if a menu item corresponding to a symlink desktop entry is dragged and dropped, it'll be created as a symlink, not as its target — which isn't a problem and seems more natural to me.

Fixes #287 and closes lxqt/lxqt-config#897
@tsujan
Copy link
Member Author

tsujan commented Dec 7, 2022

Any objection to merging? It can be tested as described in #287 and lxqt/lxqt-config#897.

EDIT: A point release may also be needed.

@stefonarch
Copy link
Member

I had no issue, *.csv was assigned to Libreoffice calc, now I changed to featherpad and couldn't switch back...

So 1) issue confirmed 2) patch is working fine.

@tsujan
Copy link
Member Author

tsujan commented Dec 7, 2022

Thanks for the confirmation.

The issue is very old. It has been hidden perhaps because symlinks are rare inside /usr/share/applications.

@tsujan tsujan merged commit d4affd5 into master Dec 12, 2022
@tsujan tsujan deleted the symlink_desktop_files branch December 12, 2022 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants