Bug 481052 - get rid of defaults.list
Summary: get rid of defaults.list
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR task
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-08 12:29 UTC by Harald Sitter
Modified: 2024-02-20 13:26 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2024-02-08 12:29:08 UTC
SUMMARY
Currently neon installs 

desktop-file-utils: /usr/share/applications/defaults.list

which means glib based applications pick up wonky ubuntu defaults. Either get rid of the package or the file.

Also see https://bugs.kde.org/show_bug.cgi?id=305136
Comment 1 Jonathan Riddell 2024-02-08 13:16:06 UTC
I'm not sure what brings it in, nothing complains when I remove it, but I do seem to have it installed.

Doesn't the package exist for a reason?  Seems like if it causes problems then the package should be fixed in freedesktop land rather than by KDE Frameworks, Plasma or neon?
Comment 2 Harald Sitter 2024-02-08 13:23:58 UTC
I think the package was added for some appimage stuff at some point, possibly its use has gone away?

The actual file is patched in by ubuntu or debian
Comment 3 Harald Sitter 2024-02-08 13:51:05 UTC
Turns out removing the package isn't a useful solution, glib tech depends on 

desktop-file-utils: /usr/bin/update-desktop-database
Comment 4 Jonathan Riddell 2024-02-19 11:26:18 UTC
So should this bug be closed?
Comment 5 Harald Sitter 2024-02-19 11:33:53 UTC
Nope. The file should still be removed somehow
Comment 6 Jonathan Riddell 2024-02-19 11:37:05 UTC
Huh.  Well a dpkg-divert in neon-settings might be the way to do it. Should I try this?

But what about non neon distros? Shouldn't there be a way that solves it for all?
Comment 7 Harald Sitter 2024-02-19 11:38:50 UTC
Sure. ubuntu shouldn't install a legacy defaults.list ;)
Comment 8 Jonathan Riddell 2024-02-20 11:06:41 UTC
Git commit a2a6da4a5edf5d2074ae985e66cba61c5b4f5166 by Jonathan Esk-Riddell.
Committed on 20/02/2024 at 10:55.
Pushed by jriddell into branch 'Neon/release'.

add divert for /usr/share/applications/defaults.list from desktop-file-utils which is an obsolete file

A  +10   -0    debian/neon-settings-2.preinst
A  +9    -0    debian/neon-settings-2.prerm

https://invent.kde.org/neon/neon/settings/-/commit/a2a6da4a5edf5d2074ae985e66cba61c5b4f5166
Comment 9 Jonathan Riddell 2024-02-20 11:07:01 UTC
OK I added a dpkg-divert to neon-settings-2
https://invent.kde.org/neon/neon/settings/-/commit/7740c4aee18cba9ad25836bdb9928d09ca38175b