Bug 98591 - KDE thinks /dev/fd is a floppy
Summary: KDE thinks /dev/fd is a floppy
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-06 11:50 UTC by Ceri Davies
Modified: 2006-06-16 08:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ceri Davies 2006-06-06 11:50:18 UTC
	Just fired up KDE for the first time on a new machine
	with an fdescfs(5) file system mounted on /dev/fd, and
	KDE thinks that it can see a floppy disk there (although
	it knows that it's an fdescfs mount).

	Screen grab at http://people.FreeBSD.org/~ceri/floppy.png

	Versions of KDE are in the screen grab; here is the
	output of "pkg_info|grep ^k":

	kde-3.5.2           The "meta-port" for KDE
	kdeadmin-3.5.2      KDE applications related to system administration
	kdeartwork-3.5.2    Additional themes, sounds, wallpapers and window styles for
	kdebase-3.5.2_1     Basic applications for the KDE system
	kdebase-kompmgr-3.5.2 Utility needed to enable XComposite support in KDE
	kdegraphics-3.5.1_2 Graphics utilities for the KDE3 integrated X11 desktop
	kdehier-1.0_9       Utility port which installs a hierarchy of shared KDE direc
	kdelibs-3.5.2_1     Base set of libraries needed by KDE programs
	kdepim-3.5.1_1      Personal Information Management tools for KDE
	kdetoys-3.5.2       Small applications for KDE
	kdeutils-3.5.2_1    Utilities for the KDE integrated X11 desktop
	koffice-1.4.2_3,1   Office Suite for KDE3
	ksh93-20060214      Official AT&T release of KornShell 93

Fix: 

Convince the KDE developers that all the world is not Linux.
How-To-Repeat: 	mount_fdescfs fdescfs /dev/fd
	Start KDE, look at system:/media.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-06-06 12:29:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->kde

Over to maintainer
Comment 2 Chris Howells 2006-06-06 13:33:10 UTC
       else if ( devNode.find("fd")!=-1 || mountPoint.find("fd")!=-1
               || devNode.find("floppy")!=-1 || 
mountPoint.find("floppy")!=-1 )
        {
                if ( devNode.find("360")!=-1 || devNode.find("1200")!=-1 )
                {
                        mimeType = "media/floppy5";
                }
                else
                {
                        mimeType = "media/floppy";
                }
                label = i18n("Floppy");
        }

in kdebase/kioslave/media/mediamanager/fstabbackend.cpp

looks like the offending code

Not quite sure the best way to fix it.

"Convince the KDE developers that all the world is not Linux"

Thankfully the guy that wrote this code is concerned about cross platform 
compatibility and already spent time talking to the KDE-FreeBSD team.

-- 
Cheers, Chris Howells -- chris@chrishowells.co.uk, howells@kde.org
Web: http://www.chrishowells.co.uk, PGP ID: 0x33795A2C
KDE/Qt/C++/PHP Developer: http://www.kde.org
Comment 3 Ceri Davies 2006-06-06 13:52:12 UTC
On Tue, Jun 06, 2006 at 01:33:10PM +0100, Chris Howells wrote:
>        else if ( devNode.find("fd")!=-1 || mountPoint.find("fd")!=-1
>                || devNode.find("floppy")!=-1 || 
> mountPoint.find("floppy")!=-1 )
>         {
>                 if ( devNode.find("360")!=-1 || devNode.find("1200")!=-1 )
>                 {
>                         mimeType = "media/floppy5";
>                 }
>                 else
>                 {
>                         mimeType = "media/floppy";
>                 }
>                 label = i18n("Floppy");
>         }
> 
> in kdebase/kioslave/media/mediamanager/fstabbackend.cpp
> 
> looks like the offending code
> 
> Not quite sure the best way to fix it.
> 
> "Convince the KDE developers that all the world is not Linux"
> 
> Thankfully the guy that wrote this code is concerned about cross platform 
> compatibility and already spent time talking to the KDE-FreeBSD team.

Sorry, Chris, I'm aware of, and appreciate, that.
I shouldn't have left out the smiley.

Ceri
-- 
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere
Comment 4 Michael Nottebrock freebsd_committer freebsd_triage 2006-06-06 22:49:39 UTC
Since http://bugs.kde.org is currently offline, I'll forego the usual
procedure of redirecting problem reporters there and instead will file a
KDE bug on this myself as soon as it comes back online. :)
Comment 5 Michael Nottebrock freebsd_committer freebsd_triage 2006-06-09 01:54:25 UTC
Filed as KDE bug 128754.
Comment 6 Michael Nottebrock freebsd_committer freebsd_triage 2006-06-16 08:21:12 UTC
State Changed
From-To: open->closed

Fixed in kdebase-3.5.3_3. Thanks for reporting!