New file creation - not opening with file editor
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | GLib |
Fix Released
|
Medium
|
||
| | One Hundred Papercuts |
High
|
Unassigned | ||
| | glib2.0 (Ubuntu) |
High
|
Iain Lane | ||
| | xdg-utils (Ubuntu) |
High
|
Unassigned | ||
Bug Description
Create a new file from File - Create Empty File.
Open new document:
expected behaviour - document opens in text editor
actual behaviour - Open With dialogue opens requiring an application to open file.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: thunar 1.6.10-1
ProcVersionSign
Uname: Linux 4.2.0-10-generic x86_64
ApportVersion: 2.18.1-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Sep 18 09:05:54 2015
InstallationDate: Installed on 2015-09-17 (0 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150917)
SourcePackage: thunar
UpgradeStatus: No upgrade log present (probably fresh install)
---
ApportVersion: 2.18.1-0ubuntu1
Architecture: amd64
CurrentDesktop: XFCE
DistroRelease: Ubuntu 15.10
InstallationDate: Installed on 2015-09-17 (1 days ago)
InstallationMedia: Xubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150917)
Package: xdg-utils 1.1.0~rc3+
PackageArchitec
ProcVersionSign
Tags: wily
Uname: Linux 4.2.0-10-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
| Kev Bowring (flocculant) wrote : | #1 |
| Sean Davis (bluesabre) wrote : | #3 |
xdg-mime query filetype FILENAME:
1.1.0~rc1: text/plain
1.1.0~rc3: application/
| Launchpad Janitor (janitor) wrote : | #4 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in xdg-utils (Ubuntu): | |
| status: | New → Confirmed |
| Ubuntu QA Website (ubuntuqa) wrote : | #5 |
This bug has been reported on the Ubuntu ISO testing tracker.
A list of all reports related to this bug can be found here:
http://
| tags: | added: iso-testing |
apport information
| tags: | added: apport-collected |
| description: | updated |
apport information
apport information
| Kev Bowring (flocculant) wrote : | #9 |
used apport-collect to grab xdg-utils as originally reported against thunar
| Changed in hundredpapercuts: | |
| status: | New → Confirmed |
| Changed in xdg-utils (Ubuntu): | |
| importance: | Undecided → High |
| Changed in hundredpapercuts: | |
| importance: | Undecided → High |
| Sean Davis (bluesabre) wrote : | #11 |
Found the source of the issue. Previously, xfce was not did not use gvfs-info for mimetype detection. This changed in this commit:
http://
Relevant code: http://
Before xfce used info_generic, which performs the mimetype lookup with the mimetype command instead of gvfs-info. On a newly created plaintext file:
$ mimetype --brief --dereference test
text/plain
$ gvfs-info test 2> /dev/null | grep standard:
application/
| Sean Davis (bluesabre) wrote : | #12 |
Following up with this, it's probably a bug that gvfs-info seems to think a blank file would not be plain text.
| Sebastien Bacher (seb128) wrote : | #13 |
That's a glib issue, reported on https:/
| Changed in gvfs (Ubuntu): | |
| assignee: | nobody → Ryan Lortie (desrt) |
| importance: | Undecided → High |
| status: | New → Triaged |
| tags: | added: rls-w-incoming |
| Changed in xdg-utils (Ubuntu): | |
| status: | Confirmed → Invalid |
| affects: | gvfs → glib |
| affects: | gvfs (Ubuntu) → glib2.0 (Ubuntu) |
| Changed in glib: | |
| importance: | Unknown → Medium |
| status: | Unknown → Confirmed |
| Kev Bowring (flocculant) wrote : | #14 |
updates this morning - new file still appears to be unknown type when created, but does open with text editor on double click
| Changed in glib2.0 (Ubuntu): | |
| status: | Triaged → Fix Committed |
| assignee: | Ryan Lortie (desrt) → Iain Lane (laney) |
| tags: |
added: xubuntu-expwily removed: wily |
| tags: |
added: wily xubuntu-exp removed: xubuntu-expwily |
| Changed in glib: | |
| status: | Confirmed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package glib2.0 - 2.46.1-1
---------------
glib2.0 (2.46.1-1) unstable; urgency=medium
[ Michael Biebl ]
* Drop clean-la.mk from debian/rules, no longer required.
[ Iain Lane ]
* New upstream release 2.46.1
+ Remove system_header pragma (should fix lack of warnings with things
like g_return_if_fail)
+ move GStrv typedef (and auto-cleanup) from libgobject to libglib
+ fix order of trashing files to be closer to what is required in the
specifica
fix issues with the gvfs trash backend failing to correctly read the
info for recently trashed files (preventing 'restore'). (Closes:
#800491) (LP: #1495943)
+ tweak mime logic to return text/plain on all empty files instead of
returning application/
extensions that imply that they may be other types of files, which is a
slight change of behaviour with respect to old GLib versions. (LP:
#1497170)
* debian/
this is applied upstream in this release.
* debian/
patch from bgo#754994 to resolve intermittent test failures in the
GDateTime tests.
-- Iain Lane <email address hidden> Thu, 15 Oct 2015 16:08:30 +0100
| Changed in glib2.0 (Ubuntu): | |
| status: | Fix Committed → Fix Released |
| Changed in glib: | |
| status: | Fix Released → Confirmed |
| Changed in glib: | |
| status: | Confirmed → Fix Released |
| tags: | removed: xubuntu-exp |


In an older vm running wily - xdg-utils is 1.1.0~rc1-2ubuntu11 and bug not present