Bug 66357 - 'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'
Summary: 'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'
Status: CLOSED FIXED
Alias: None
Product: kdesktop
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
: 66899 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-21 22:20 UTC by Chris Rainey
Modified: 2009-01-02 20:25 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rainey 2003-10-21 22:20:27 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    Compiled From Sources
Compiler:          GCC 3.3 
OS:          Linux

The 'Exec' command in the '~/Desktop/Floppy' file _must_ be suceeded by a ';' after any commands.  

[richard@SONY-F490 richard]$ cat Desktop/Floppy\ Disk\ Drive 
[Desktop Action Format]
Exec=kfloppy;
Name=Format

[Desktop Entry]
Actions=Format
Dev=/dev/floppy/0
Encoding=UTF-8
FSType=Default
Icon=3floppy_mount
MountPoint=/mnt/fl
ReadOnly=false
Type=FSDevice
UnmountIcon=3floppy_unmount
[richard@SONY-F490 richard]$ 


By default, the 'Templates'(found by 'right-clicking' the desktop and selecting 'Create New') do _NOT_ have the ';' included.  This may be as a result of older code not having been updated for some new standard(!?).
Comment 1 David Faure 2003-10-21 23:45:16 UTC
Subject: Re:  New: 'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

On Tuesday 21 October 2003 22:20, you wrote:
> The 'Exec' command in the '~/Desktop/Floppy' file _must_ be suceeded by a ';' after any commands.  

Why?

> By default, the 'Templates'(found by 'right-clicking' the desktop and selecting 'Create New') do _NOT_ have the ';' included.  

Yes, and why is that a bug?

> This may be as a result of older code not having been updated for some new standard(!?). 

Which one?

Comment 2 Chris Rainey 2003-10-22 05:06:06 UTC
Subject: Re:  'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

Hi,

Sorry for being unclear.

If the command: 'Exec=kfloppy' does not have a ';' after the word 'kfloppy', then, the kfloppy program will _not_ launch(!).  As is, if I create a new floppy disk icon using the 'right-click desktop|Create New|Floppy Device...' sequence, then go to 'right-click floppy icon on desktop|Format' does _not_ launch kfloppy--it just 'blinks' and does nothing.

I found the solution of putting the ';' after the 'kfloppy' on the current KNOPPIX 3.3 CD.  I.e.:

[richard@SONY-F490 richard]$ cat Desktop/Floppy\ Disk\ Drive 
[Desktop Action Format]
Exec=kfloppy;
Name=Format

[Desktop Entry]
Actions=Format
Dev=/dev/floppy/0
Encoding=UTF-8
FSType=Default
Icon=3floppy_mount
MountPoint=/mnt/floppy
ReadOnly=false
Type=FSDevice
UnmountIcon=3floppy_unmount
[richard@SONY-F490 richard]$ 


Hope this helps.  I was able to reproduce the problem/solution on both my current distro, www.archlinux.org (two different machines) and using www.slackware-live.org live-cd.


----- Original Message -----
From: "David Faure" <faure@kde.org>
To: marin_linuxer@linuxcult.com
Sent: Tuesday, October 21, 2003 02:42 PM
Subject: [Bug 66357] 'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>      
> http://bugs.kde.org/show_bug.cgi?id=66357     
> 
> 
> 
> 
> ------- Additional Comments From faure@kde.org  2003-10-21 23:45 -------
> Subject: Re:  New: 'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'
> 
> On Tuesday 21 October 2003 22:20, you wrote:
> > The 'Exec' command in the '~/Desktop/Floppy' file _must_ be suceeded by a ';' after any commands.  
> 
> Why?
> 
> > By default, the 'Templates'(found by 'right-clicking' the desktop and selecting 'Create New') do _NOT_ have the ';' included.  
> 
> Yes, and why is that a bug?
> 
> > This may be as a result of older code not having been updated for some new standard(!?). 
> 
> Which one?
Comment 3 David Faure 2003-10-28 18:50:00 UTC
I think I know what's happening.
When Exec=kfloppy, it's started via kdeinit - like when you start it from the K menu.
I guess this fails, right?

On the other hand, when you append a ";", it's started via a shell - like when you start it from a konsole. I guess this works, right?
Comment 4 Chris Rainey 2003-10-28 19:07:34 UTC
Subject: Re:  'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

RIGHT!

Although you understand the inner-workings much better than I.  All I know is that if I don't include the ' ; ', then, it just blinks and does not launch(!?).

Do you think this is distro-specific or the same for all KDE user's?  In other words, do you think the problem occurs only on self-compiled systems?

Thanx.

----- Original Message -----
From: "David Faure" <faure@kde.org>
To: marin_linuxer@linuxcult.com
Sent: Tuesday, October 28, 2003 09:47 AM
Subject: [Bug 66357] 'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>      
> http://bugs.kde.org/show_bug.cgi?id=66357     
> 
> 
> 
> 
> ------- Additional Comments From faure@kde.org  2003-10-28 18:50 -------
> I think I know what's happening.
> When Exec=kfloppy, it's started via kdeinit - like when you start it from the K menu.
> I guess this fails, right?
> 
> On the other hand, when you append a ";", it's started via a shell - like when you start it from a konsole. I guess this works, right?
Comment 5 David Faure 2003-10-28 20:01:07 UTC
Subject: Re:  'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

On Tuesday 28 October 2003 19:07, you wrote:
> Although you understand the inner-workings much better than I.  All I know is that if I don't include the ' ; ', then, it just blinks and does not launch(!?).

Does it also print out anything in ~/.xsession-errors (assuming you use kdm/xdm,
not startx)?
I'm guessing there will be an 'undefined symbol' message, or something from
kdeinit or klauncher, about why it can't launch kfloppy.

Or maybe it's not the same kfloppy that's being launched? What does
"which kfloppy" say in a konsole? Where's your KDE installed? Do you have
more than one versions of KDE installed?

For sure it works here with CVS HEAD, and I can't any relevant changes
in kfloppy's Makefile.am. (Hmm and it doesn't even have a kdeinit module).

Comment 6 Helge Deller 2003-11-07 01:39:50 UTC
*** Bug 66899 has been marked as a duplicate of this bug. ***
Comment 7 Helge Deller 2003-11-07 01:45:52 UTC
adding a ";" directly after "kfloppy" is just an ugly workaround for a bug
in kfloppy.
The problem is, that kdesktop automatically adds the .desktop file name (or the device name, e.g. /dev/fd0 for a "%v" after "kfloppy") to the Exec command.
This currently results in kdesktop starting "kfloppy ~/Desktop/Floppy.desktop", and kfloppy will just report "unknown command line parameter" without starting up.
So, adding a ";" is just a hack which results in kdesktop starting "kfloppy; ~/Desktop/Floppy.desktop" which are basically two commands.
BTW, I have a clean patch ready to go into CVS - I'm only waiting for approval from kde-core-devel.
Helge
Comment 8 Chris Rainey 2003-11-07 20:26:12 UTC
Subject: KDE:   'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

Thank You!!



----- Original Message -----
From: "Helge Deller" <deller@kde.org>
To: marin_linuxer@linuxcult.com
Sent: Thursday, November 06, 2003 04:42 PM
Subject: [Bug 66357] 'Create New' template(s) for 'Floppy Device...' missing ';' after 'Exec=kfloppy'

> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>      
> http://bugs.kde.org/show_bug.cgi?id=66357     
> deller@kde.org changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|UNCONFIRMED                 |NEW
>       everconfirmed|0                           |1
> 
> 
> 
> ------- Additional Comments From deller@kde.org  2003-11-07 01:45 -------
> adding a ";" directly after "kfloppy" is just an ugly workaround for a bug
> in kfloppy.
> The problem is, that kdesktop automatically adds the .desktop file name (or the device name, e.g. /dev/fd0 for a "%v" after "kfloppy") to the Exec command.
> This currently results in kdesktop starting "kfloppy ~/Desktop/Floppy.desktop", and kfloppy will just report "unknown command line parameter" without starting up.
> So, adding a ";" is just a hack which results in kdesktop starting "kfloppy; ~/Desktop/Floppy.desktop" which are basically two commands.
> BTW, I have a clean patch ready to go into CVS - I'm only waiting for approval from kde-core-devel.
> Helge
Comment 9 Helge Deller 2003-11-07 22:24:21 UTC
Subject: done

Comment 10 FiNeX 2009-01-02 20:25:32 UTC
Bug closed. Kdesktop is no more mantained.