[CMake] [PATCH] install desktop file for cmake-gui

Alexander Neundorf a.neundorf-work at gmx.net
Wed Mar 5 17:48:04 EST 2008


On Wednesday 05 March 2008, Hendrik Sattler wrote:
> Am Mittwoch 05 März 2008 schrieb Alexander Neundorf:
> > attached you can find a patch which installs a freedesktop desktop file
> > for cmake-gui together with an icon, so that cmake should appear in the
> > start menus of KDE, Gnome, etc. (tested with KDE 3.5)
> >
> > I'm not sure if the desktop file should just call "cmake-gui" in Exec, or
> > if it should be a configured file with the full path to cmake-gui, e.g.
> > Exec=/opt/cmake-HEAD/bin/cmake-gui .
> > Comments ?
>
> Yes. Would it be possible to connect it to CMakeLists.txt files? Maybe with
> a new mime type text/x-cmake?
>
> Comment should be "Cross-platform build system".
>
> Can cmake-gui open more than one file? I guess it's only one so the Exec
> line should be "cmake-gui %f".

Modified patch attached.
The mimetype doesn't seem to have an effect on my KDE3 installation, I think 
KDE3 doesn't use the shared-mimetype system yet.

Comments ?

Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake.desktopfile.patch-2
Type: text/x-diff
Size: 1973 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080305/3e515c26/attachment.diff>


More information about the CMake mailing list