Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Actual i'm experimenting with Rubys setup.rb [^].

I have defined a hook file like:

# post-install.rb
require 'fileutils'

prefix = "#{Dir.home}/.rvm/rubies/default"
datadir = "#{prefix}/share"
desktopfile = "#{Dir.home}/.local/applications/latex_curriculum_vitae.desktop"

FileUtils.touch(desktopfile)
File.write "#{desktopfile}", <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=Job-Application Creator
Exec=latexcv.rb
Icon="#{datadir}/latex_curriculum_vitae/Pictures/arbeitsagentur.png"
EOF

The Release Note for the latest ruby.rb says: Hook API is no longer supported ; support is now handled via singleton extension.

But it is sadly not well documented.

Maybe anyone can share experience?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900