Skip to content

Commit

Permalink
fix: Open zero size file fail
Browse files Browse the repository at this point in the history
A higher version of the glib library returns `application/x-zerosize`
instead of `text/plain` when it is a regular file with a size of 0.
Let's register the application/x-zerosize MimeType in the desktop file
to adapt.

Log: fix open zero size file fail
Bug: https://pms.uniontech.com/bug-view-267705.html
  • Loading branch information
wangrong1069 authored and deepin-bot[bot] committed Sep 3, 2024
1 parent e3302f2 commit 6299ee4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
deepin-editor (6.5.1) unstable; urgency=medium

* fix: Register application/x-zerosize MimeType in desktop file (Bug: 267705)

-- wangrong <[email protected]> Tue, 03 Sep 2024 15:43:20 +0800

deepin-editor (6.5.0) unstable; urgency=medium

* chore(CI): add debian check workflow
Expand Down
2 changes: 1 addition & 1 deletion deepin-editor.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ GenericName[uk]=Текстовий редактор
GenericName[zh_CN]=文本编辑器
GenericName[zh_HK]=文本編輯器
GenericName[zh_TW]=文字編輯器
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-patch;text/x-adasrc;text/css;application/x-desktop;text/x-fortran;text/html;text/x-objcsrc;application/x-perl;application/x-php;text/vnd.wap.wml;text/x-python;application/x-ruby;text/sgml;application/xml;model/vrml;image/svg+xml;application/json;application/toml;
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-patch;text/x-adasrc;text/css;application/x-desktop;text/x-fortran;text/html;text/x-objcsrc;application/x-perl;application/x-php;text/vnd.wap.wml;text/x-python;application/x-ruby;text/sgml;application/xml;model/vrml;image/svg+xml;application/json;application/toml;application/x-zerosize;
Name[ar]=محرر نصوص ديبين
Name[bo]=གཏིང་ཟབ་ཡིག་ཆ་རྩོམ་སྒྲིག་ཆས།
Name[br]=Aozer testennoù Deepin
Expand Down

0 comments on commit 6299ee4

Please sign in to comment.