diff --git a/Cargo.lock b/Cargo.lock index d12298e..b5d9dd7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2245,7 +2245,7 @@ dependencies = [ [[package]] name = "pdf-presenter" -version = "0.1.65" +version = "0.1.66" dependencies = [ "bytemuck", "chrono", diff --git a/Cargo.toml b/Cargo.toml index cdaa0d4..2c69c86 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"] resolver = "3" [workspace.package] -version = "0.1.65" +version = "0.1.66" edition = "2024" license = "MIT" repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter" diff --git a/docs/changelog.md b/docs/changelog.md index dff2e91..22d02cd 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,13 @@ ## Unreleased +### 0.1.66 + +- Run the optional Linux desktop-launcher installation test only on Linux workers; + platform-neutral desktop-entry escaping tests still run everywhere. Include the + installer’s stderr when a real Linux integration failure occurs. Linux checks pass + with 86.50% whole-application coverage; the release binary is rebuilt. + ### 0.1.65 - Hide routine rolling-buffer information when the presenter footer is hidden, diff --git a/tests/test_launcher.py b/tests/test_launcher.py index 791dcb8..13756de 100644 --- a/tests/test_launcher.py +++ b/tests/test_launcher.py @@ -21,6 +21,7 @@ class LauncherTests(unittest.TestCase): self.assertIn('StartupWMClass=pdf-presenter', entry) self.assertIn('" %f\n', entry) + @unittest.skipUnless(sys.platform.startswith("linux"), "Linux launcher integration") def test_install_from_bundle_uses_xdg_location(self): with tempfile.TemporaryDirectory() as temp: root = Path(temp) @@ -31,11 +32,16 @@ class LauncherTests(unittest.TestCase): (bundle / 'pdf-presenter').touch() (bundle / 'pdf-presenter.png').touch() env = dict(os.environ, XDG_DATA_HOME=str(root / 'data')) - subprocess.run([sys.executable, str(script)], env=env, check=True, capture_output=True) + result = subprocess.run( + [sys.executable, str(script)], env=env, capture_output=True, text=True + ) + self.assertEqual(result.returncode, 0, result.stderr) installed = root / 'data/applications/pdf-presenter.desktop' self.assertEqual(installed.read_text(), launcher.desktop_entry( bundle / 'pdf-presenter', bundle / 'pdf-presenter.png')) (bundle / 'pdf-presenter').unlink() - result = subprocess.run([sys.executable, str(script)], env=env, capture_output=True) + result = subprocess.run( + [sys.executable, str(script)], env=env, capture_output=True, text=True + ) self.assertNotEqual(result.returncode, 0) self.assertTrue(installed.is_file())