Trevinho disagrees with me, but I want to put on the record that I think comment #6's patch is wrong and that instead the VACUUM mode should explicitly check if the database exists and "return 0" in that case.
Rationale: It's reasonable to say that it's okay to run without having run the main program first. The counter argument says that this is *not* reasonable and you would expect an error in this case. I think that there is no one true way here, and you should write programs with their intended usage in mind. In this case I think the intented use is that you could imagine a user writing a shell script such as: #!/bin/sh set -e zeitgeist-vacuum # or zeitgeist --vacuum zeitgeist (of course this is a simplified version of the existing user unit's control flow) and it's just silly to have to detect the DB not existing explicitly there. It's also a bit shady to ignore VACUUM failures that could point to a more severe problem. For the record, I think the code to implement my change would look like this (untested). var file = File.new_for_path (db_path); if (!file.query_exists ()) { debug ("Database '%s' doesn't exist, but that's okay".printf (db_path)); return 0; } With this change the unit file can remain unmodified. Since there's disagreement, I won't unilaterally upload my suggestion. -- You received this bug notification because you are a member of DX Packages, which is subscribed to zeitgeist in Ubuntu. Matching subscriptions: dx-packages https://bugs.launchpad.net/bugs/1666495 Title: [Zesty] No default apps shown on first start in kvm oem end user Status in unity-lens-applications: Invalid Status in zeitgeist package in Ubuntu: In Progress Bug description: STEPS: 1. Install the latest iso in kvm 2. Click on Ubuntu button EXPECTED: I expect to see Thunderbird, rhythmbox, totem, etc. There are normally 5 default apps shown. ACTUAL: I get what you see in the attached screenshot. --- ApportVersion: 2.20.4-0ubuntu2 Architecture: amd64 CurrentDesktop: Unity:Unity7 DistroRelease: Ubuntu 17.04 InstallationDate: Installed on 2017-02-21 (0 days ago) InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Alpha amd64 (20170221) Package: unity-lens-applications 7.1.0+16.10.20160927-0ubuntu2 PackageArchitecture: amd64 ProcVersionSignature: Ubuntu 4.10.0-8.10-generic 4.10.0-rc8 Tags: zesty Uname: Linux 4.10.0-8-generic x86_64 UpgradeStatus: No upgrade log present (probably fresh install) UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo _MarkForUpload: True To manage notifications about this bug go to: https://bugs.launchpad.net/unity-lens-applications/+bug/1666495/+subscriptions -- Mailing list: https://launchpad.net/~dx-packages Post to : dx-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~dx-packages More help : https://help.launchpad.net/ListHelp