dev.postaction-in-tlpsrc.patch ============================== The idea is to move stuff from TLPostActions.pm into the tlpsrc files. The format would be: postaction shortcut name=name type=menu icon=... cmd=... args=... hide=0 postaction shortcut name=name type=menu icon=... cmd=... args=... hide=0 postaction shortcut name=name type=desktop icon=... cmd=... args=... hide=1 postaction filetype name=TLPostScript cmd=... postaction fileassoc extension=.ps filetype=TLPostScript postaction code ...something till now undecided.... These actions would be called by install-tl and tlmgr on install time and from tlmgr at removal time. Problems I have found while implementing: - add_desktop_shortcut (from TLWinGoo) needs the $texdirw (writable texdir) variable to update the unshort.bat script. What about getting rid of the unshort.bat completely and calling all the TLPostActions.pm PostRemoval actions, and here the postactions with "remove" argument, so that all shortcuts are removed that way. - how to implement the postaction code stuff. What about: postaction code install=sub_name_a remove=sub_name_b file=texmf-dist/scripts/foo/bar/baz.pl which will trigger the require of that script and at install time the call of sub_name_a and at removal time the call of sub_name_b, both within an eval to catch any errors.