Hello to everyone.
I’m writing an application using the KDE ruby bindings and I’d like to
it as a gem. However, for the application to integrate correctly with
file with extension .desktop needs to be installed in one of the
contained in the KDEDIRS environment variable (on my system, for
are /usr and /usr/local). As far as I could understand reading the
documentation at docs.rubygems.org (since that page documents rubygems
however, I don’t know how much of it is still valid), rubygems installs
the files under RUBYLIBPREFIX/gems/RUBYVERSION/gems/GEMNAME-GEMVERSION
example /usr/lib/ruby/gems/1.9.1/gems/myapplication-1.0.0). Is this
If so, isn’t there any trick at all allowing me to force it to install
.desktop file somewhere else?
If I can’t install the .desktop file in another directory using
I can only see two other options. The first is to tell the user to add
directory where rubygems installed the application to the KDEDIRS
variable; the second is not to use rubygems and to package my
using something else. I don’t like any of these approaches. Setting the
environment variable means more work for the user and needs to be done
time a new version is released, since the version number is part of the
of the directory installs it. Using another packaging system (my choice
this case would be using CMake, which is the build system used by KDE
would force the user to manually install the gems my application depends
again meaning more work for the user. What do you think?
Thanks in advance