Scratch hangs up when reading from a named pipe instead of a file

Bug #1056346 reported by Sergey "Shnatsel" Davidoff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scratch
Fix Released
Low
Gero.Bare

Bug Description

Scratch hangs up when reading from a named pipe instead of a file, even if I cat a text file in there.

Would be nice if Scratch could read the and display the text and treat that as unsaved file.

Gedit reads all the data from the pipe and then complains that it's not a regular file. Considering our target audience, I guess complaining that it's not a regular file and not reading the data is fine too.

This will probably rank #1 on "Weird Things To Do With Scratch" list, until somebody passes a block device.

Testcase:
mkfifo my_named_pipe
cat some-text-file.txt > my_named_pipe &
scratch-text-editor my_named_pipe

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: scratch-text-editor 1.1.1+r883-0+pkg31~precise1 [origin: LP-PPA-elementary-os-daily]
ProcVersionSignature: Ubuntu 3.2.0-30.48-generic 3.2.27
Uname: Linux 3.2.0-30-generic x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
CrashDB: scratch_text_editor
Date: Tue Sep 25 21:10:01 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120303)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
 SHELL=/usr/bin/fish
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :
description: updated
Changed in scratch:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 1.2
Changed in scratch:
milestone: 2.0 → 2.1
Changed in scratch:
milestone: 2.0.1 → 2.1
Changed in scratch:
importance: Medium → Low
milestone: isis-beta1 → none
Changed in scratch:
status: Confirmed → In Progress
assignee: nobody → Gero.bare (gero-bare)
Changed in scratch:
status: In Progress → Fix Committed
milestone: none → loki-alpha1
Cody Garver (codygarver)
Changed in scratch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.