mate-desktop / mate-control-center

Utilities to configure the MATE desktop
https://mate-desktop.org
GNU General Public License v2.0
68 stars 59 forks source link

"Text Editor" in "Preferred Applications" need to handle "application/x-zerosize" #760

Open billyswong opened 4 months ago

billyswong commented 4 months ago

Expected behaviour

New documents created by right click > create document > empty file should be opened by text editor automatically

Actual behaviour

The rebase of Ubuntu 24.04 introduced a new MIME type "application/x-zerosize" for such empty file. Caja doesn't know what program to open such file with. The "Preferred Applications" isn't setting text editor to handle "application/x-zerosize" either.

MATE general version

1.26

Linux Distribution

Linux Mint 22 Beta

Link to bugreport of your Distribution (requirement)

https://github.com/linuxmint/mint22-beta/issues/26

lukefromdc commented 4 months ago

You should be able to manually set it in "preferred applications," if not that's a bug, possibly one specific to Ubuntu?

I have the application/x-zerosize MIME type here on Debian Unstable. Gedit and pluma (I have both installed) are listed as the available applications to open it in, with Pluma being set as the default. I do not remember how I got there however.

billyswong commented 4 months ago

I can set up "Empty document" to be opened by xed or pluma via right click > open with other application. I can set it up via right click > properties > open with. But the "Preferred Application" > System > Text Editor setting is not taking on "Empty document (application/x-zerosize)" automatically. They don't sync.

billyswong commented 4 months ago

Alternative resolution taken by lxqt https://github.com/lxqt/lxqt/discussions/2395#discussioncomment-5353272