Scratch hangs up when reading from a named pipe instead of a file
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-
ProcVersionSign
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=
SourcePackage: scratch-text-editor
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Jeremy Wootten: Approve
- Danielle Foré: Needs Fixing
-
Diff: 92 lines (+69/-4)1 file modifiedsrc/Scratch.vala (+69/-4)
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 |
Changed in scratch: | |
status: | Fix Committed → Fix Released |