After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 84321 - gnome-desktop-item-edit should create new desktop items
gnome-desktop-item-edit should create new desktop items
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: general
2.6.x
Other All
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-06-06 02:20 UTC by Gregory Merchan
Modified: 2006-08-08 02:34 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Gregory Merchan 2002-06-06 02:20:49 UTC
gnome-desktop-item-edit version 1.5.24 lists among its command line
parameters:

  --create-file  Create new file in the given directory

Trying various invocations failed:

$ gnome-desktop-item-edit             
gnome-desktop-item-edit: no file to edit

$ gnome-desktop-item-edit --create-new
gnome-desktop-item-edit: no file to edit

$ gnome-desktop-item-edit --create-new .
gnome-desktop-item-edit: file: does not exist

After creating a zero-length file in the current working directory:

$ gnome-desktop-item-edit --create-new empty.desktop 
gnome-desktop-item-edit: file:empty.desktop does not exist

$ gnome-desktop-item-edit --create-new ./empty.desktop 
gnome-desktop-item-edit: file:empty.desktop does not exist

$ gnome-desktop-item-edit --create-new ./empty.desktop 
gnome-desktop-item-edit: file:empty.desktop does not exist

$ gnome-desktop-item-edit --create-new /home/merchan/empty.desktop 
gnome-desktop-item-edit: file:///home/merchan/empty.desktop doesn't seem
like a desktop item

$ gnome-desktop-item-edit --create-new file:///home/merchan/empty.desktop 
gnome-desktop-item-edit: file:///home/merchan/empty.desktop doesn't seem
like a desktop item

Adding content like in other desktop items to the file gives the same
error. So does invoking it with one from Nautilus.

Invoking without --create-new shows a window, but it's insensitive and
contains no data.
Comment 1 Luis Villa 2002-06-06 15:29:38 UTC
Alex: is this yours? Is this app deprecated, only used from nautilus,
or what?
Comment 2 Christian Neumair 2004-06-27 08:57:11 UTC
Still seems to be an issue. Any news?

regs,
 Chris
Comment 3 Mark McLoughlin 2004-06-29 08:42:12 UTC
Yeah, its still an issue, but since its only really used by nautilus its not
hugely important.

Would be nice to fix, though.
Comment 4 Kjartan Maraas 2005-01-03 15:49:09 UTC
Still there. Bumping version...
Comment 5 Vincent Untz 2006-08-08 02:34:31 UTC
2006-08-08  Vincent Untz  <vuntz@gnome.org>

        * gnome-desktop-item-edit.c: (is_an_uri): kill
        (get_uri): rewrote, with nice gnome_vfs_uri_make_full_from_relative()
        to resolve relative paths
        (main): report correct error if the file exists but --create-new was
        used
        Fix bug #84321