Package Details: manictime-bin 1.2.2-1

Git Clone URL: https://aur.archlinux.org/manictime-bin.git (read-only, click to copy)
Package Base: manictime-bin
Description: ManicTime automatically records your computer usage.
Upstream URL: https://www.manictime.com/linux/download
Licenses: custom:commercial
Submitter: 1994rstefan
Maintainer: None
Last Packager: TheGoliath
Votes: 3
Popularity: 0.94
First Submitted: 2019-02-25 15:32
Last Updated: 2020-06-13 17:20

Latest Comments

isch commented on 2020-10-23 21:16

This package is a quite broken.

Running manictime (/usr/bin/manictime -> /opt/manictime/manictime) returns immediately without launching the program. This is a script that tries to execute ManicTime from the same directory it's invoked from. Reading nohup.out, you'll see that this doesn't exist, because that'd be /usr/bin/, while the installation directory is /opt/manictime/

Line 7 should look like this after install: SCRIPTPATH="$( cd /opt/manictime >/dev/null 2>&1 ; pwd -P )" -- but you'd want to do that with the appropriate variable in PGKBUILD.

Executing /opt/manictime/ManicTime manually spits back:

Error:
An assembly specified in the application dependencies manifest (ManicTime.deps.json) was not found: package: 'runtimepack.Microsoft.NETCore.App.Runtime.linux-x64', version: '3.1.3' path: 'System.IO.Compression.Native.a'

rpath is explicitly set to an invalid path, but this is a red herring. Reading ManicTime.deps.json tells us that the assembly it can't find is a 'native' runtime, and indeed, they aren't included with the other libraries to be dynamically linked in /opt/manictime/Libs.

The files it needs are included with the dotnet-runtime package in repos, but changing the binary ELF rpath to include where they reside doesn't resolve the error. I'm not familiar with .NET apps at all; maybe the manifest could be modified to handle this somehow. This package ought to be in the dependencies.

I ended up hacking around this problem by symlinking the following assemblies from /opt/dotnet/shared/Microsoft.NETCore.App/3.0.0-rc1-19456-20/ into /opt/manictime/Libs/runtimepack.Microsoft.NETCore.App.Runtime.linux-x64/3.1.3:

  • System.Security.Cryptography.Native.OpenSsl.a
  • System.Net.Security.Native.a
  • System.Net.Http.Native.a
  • System.Native.a
  • System.IO.Compression.Native.a
  • System.IO.Compression.a

Sorry I couldn't help more. Maybe the people over on the forum could help you out with additional improvements!