Change:
i can no longer use libreoffice headlessly i suspect this is due to the rewrite of the wrapper additionally, the binary is no longer provided, only etc, which are supposed to be usable headlessly too and maybe more impactful, attempting to launch the GUI with doesn't work either Steps to reproduce the behavior: -, -for a known working .odt file or project using the headless feature, see (already amended to attempt to use instead of ) to open libreoffice with the appropriate sub-app with that file open to open libreoffice writer with that file open to yield to yield error window on ! due to , the wrapper rewrite which seems to have introduced this issue
Aish... didn't realize this usage would break when I the flag to ... As a workaround, you can run the unwrapped executables in the meantime, this should work (works for me): I'm a bit confused though, which revision are you evaluating exactly? which is used in your report is before the wrapper rewrite.
I don't experience other issues you mention on current branch .
oh right, i had this issue on up-to-date yesterday on my laptop i filed the issue on my desktop
i'm unclear about what issues you don't experience on current on the branch, there's no
My bad :sweat_smile: My wasn't updated at all! Adding won't be that hard, but fixing the issue is harder...

Discussion:
# The unwrapped libreoffice derivation , unwrapped , makeWrapper <ins> , xorg # for lndir </ins> , runCommand , substituteAll # For Emulating wrapGAppsHook

fi '') ] ++ [ <del> "--chdir" "${unwrapped}/lib/libreoffice/program" </del> "--inherit-argv0" ] ++ extraMakeWrapperArgs ); in runCommand "${unwrapped.name}-wrapped" { inherit (unwrapped) meta; paths = [ unwrapped ]; <del> nativeBuildInputs = [ makeWrapper ]; </del> <ins> nativeBuildInputs = [ makeWrapper xorg.lndir ]; </ins> passthru = { inherit unwrapped; # For backwards compatibility:

inherit (unwrapped) kdeIntegration; }; } ('' <del> mkdir -p "$out/bin" mkdir -p "$out/share" </del> <ins> mkdir -p $out/share </ins> for dir in ${unwrapped}/share/*; do dirname="''${dir##*/}" if [[ $dirname == "applications" ]]; then

ln -s $dir $out/share/ fi done <del> ln -s ${unwrapped}/lib $out/lib </del> for f in $out/share/applications/*.desktop; do substituteInPlace "$f"  --replace "Exec=libreoffice${major}.${minor}" "Exec=soffice" done <ins> mkdir -p $out/bin mkdir -p $out/lib/libreoffice/program lndir -silent ${unwrapped}/lib/libreoffice/program $out/lib/libreoffice/program </ins> for i in sbase scalc sdraw smath swriter simpress soffice unopkg; do <del> makeWrapper ${unwrapped}/lib/libreoffice/program/$i $out/bin/$i ${makeWrapperArgs} </del> <ins> # Delete the symlink created by lndir, and replace it by our wrapper rm $out/lib/libreoffice/program/$i makeWrapper  ${unwrapped}/lib/libreoffice/program/$i  $out/lib/libreoffice/program/$i  ${makeWrapperArgs} </ins> '' + lib.optionalString dbusVerify '' # Delete the dbus socket directory after libreoffice quits <del> sed -i 's/^exec -a "$0" //g' $out/bin/"$i" echo 'code="$?"' >> $out/bin/$i echo 'test -n "$dbus_socket_dir" && { rm -rf "$dbus_socket_dir"; kill $dbus_pid; }' >> $out/bin/$i echo 'exit "$code"' >> $out/bin/$i </del> <ins> sed -i 's/^exec -a "$0" //g' $out/lib/libreoffice/program/$i echo 'code="$?"' >> $out/lib/libreoffice/program/$i echo 'test -n "$dbus_socket_dir" && { rm -rf "$dbus_socket_dir"; kill $dbus_pid; }' >> $out/lib/libreoffice/program/$i echo 'exit "$code"' >> $out/lib/libreoffice/program/$i </ins> '' + '' <ins> ln -s $out/lib/libreoffice/program/$i $out/bin/$i </ins> done <ins> # A symlink many users rely upon ln -s $out/bin/soffice $out/bin/libreoffice </ins> '')