Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package presenterm for openSUSE:Factory checked in at 2025-08-04 15:25:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/presenterm (Old) and /work/SRC/openSUSE:Factory/.presenterm.new.1085 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "presenterm" Mon Aug 4 15:25:29 2025 rev:18 rq:1297399 version:0.15.1 Changes: -------- --- /work/SRC/openSUSE:Factory/presenterm/presenterm.changes 2025-07-15 16:44:19.969021658 +0200 +++ /work/SRC/openSUSE:Factory/.presenterm.new.1085/presenterm.changes 2025-08-04 15:26:36.082476359 +0200 @@ -1,0 +2,7 @@ +Mon Aug 4 06:57:12 UTC 2025 - Michael Vetter <[email protected]> + +- Update to 0.15.1: + * Disable OSC 11 when running in tmux (#696). + * Follow custom theme symlinks (#692). + +------------------------------------------------------------------- Old: ---- presenterm-0.15.0.tar.zst New: ---- presenterm-0.15.1.tar.zst ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ presenterm.spec ++++++ --- /var/tmp/diff_new_pack.06DDsk/_old 2025-08-04 15:26:38.950596837 +0200 +++ /var/tmp/diff_new_pack.06DDsk/_new 2025-08-04 15:26:38.954597005 +0200 @@ -17,7 +17,7 @@ Name: presenterm -Version: 0.15.0 +Version: 0.15.1 Release: 0 Summary: A terminal slideshow tool License: BSD-2-Clause ++++++ _service ++++++ --- /var/tmp/diff_new_pack.06DDsk/_old 2025-08-04 15:26:38.990598518 +0200 +++ /var/tmp/diff_new_pack.06DDsk/_new 2025-08-04 15:26:38.994598685 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/mfontanini/presenterm</param> <param name="versionformat">@PARENT_TAG@</param> <param name="scm">git</param> - <param name="revision">v0.15.0</param> + <param name="revision">v0.15.1</param> <param name="match-tag">*</param> <param name="versionrewrite-pattern">v(\d+\.\d+\.\d+)</param> <param name="versionrewrite-replacement">\1</param> ++++++ presenterm-0.15.0.tar.zst -> presenterm-0.15.1.tar.zst ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/presenterm-0.15.0/.github/workflows/nightly.yaml new/presenterm-0.15.1/.github/workflows/nightly.yaml --- old/presenterm-0.15.0/.github/workflows/nightly.yaml 2025-07-13 22:50:27.000000000 +0200 +++ new/presenterm-0.15.1/.github/workflows/nightly.yaml 2025-08-03 22:39:24.000000000 +0200 @@ -14,6 +14,7 @@ outputs: timestamp: ${{ steps.set.outputs.timestamp }} git_hash: ${{ steps.set.outputs.git_hash }} + latest_nightly_hash: ${{ steps.set.outputs.latest_nightly_hash }} steps: - name: Checkout the repository uses: actions/checkout@v4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/presenterm-0.15.0/CHANGELOG.md new/presenterm-0.15.1/CHANGELOG.md --- old/presenterm-0.15.0/CHANGELOG.md 2025-07-13 22:50:27.000000000 +0200 +++ new/presenterm-0.15.1/CHANGELOG.md 2025-08-03 22:39:24.000000000 +0200 @@ -1,3 +1,10 @@ +# v0.15.1 - 2025-08-01 + +## Fixes + +* Disable OSC 11 when running in tmux ([#696](https://github.com/mfontanini/presenterm/issues/696)). +* Follow custom theme symlinks ([#692](https://github.com/mfontanini/presenterm/issues/692)). + # v0.15.0 - 2025-07-13 ## Breaking changes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/presenterm-0.15.0/Cargo.lock new/presenterm-0.15.1/Cargo.lock --- old/presenterm-0.15.0/Cargo.lock 2025-07-13 22:50:27.000000000 +0200 +++ new/presenterm-0.15.1/Cargo.lock 2025-08-03 22:39:24.000000000 +0200 @@ -673,7 +673,7 @@ [[package]] name = "presenterm" -version = "0.15.0" +version = "0.15.1" dependencies = [ "anyhow", "base64", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/presenterm-0.15.0/Cargo.toml new/presenterm-0.15.1/Cargo.toml --- old/presenterm-0.15.0/Cargo.toml 2025-07-13 22:50:27.000000000 +0200 +++ new/presenterm-0.15.1/Cargo.toml 2025-08-03 22:39:24.000000000 +0200 @@ -4,7 +4,7 @@ description = "A terminal slideshow presentation tool" repository = "https://github.com/mfontanini/presenterm" license = "BSD-2-Clause" -version = "0.15.0" +version = "0.15.1" edition = "2021" [dependencies] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/presenterm-0.15.0/src/terminal/printer.rs new/presenterm-0.15.1/src/terminal/printer.rs --- old/presenterm-0.15.0/src/terminal/printer.rs 2025-07-13 22:50:27.000000000 +0200 +++ new/presenterm-0.15.1/src/terminal/printer.rs 2025-08-03 22:39:24.000000000 +0200 @@ -58,6 +58,7 @@ rows: u16, last_cleared_background_color: Option<Color>, background_color: Option<Color>, + osc11_background: bool, } impl<I: TerminalWrite> Terminal<I> { @@ -71,6 +72,8 @@ rows: u16::MAX, last_cleared_background_color: None, background_color: None, + // Only use OSC11 when outside of tmux temporarily since it somehow breaks under kitty + osc11_background: !TerminalEmulator::capabilities().tmux, }) } @@ -138,15 +141,17 @@ } fn clear_screen(&mut self) -> io::Result<()> { - match (self.last_cleared_background_color, self.background_color) { - (_, Some(Color::Rgb { r, g, b })) => { - // Set background via OSC 11 if we have an RGB color - write!(self.writer, "\x1b]11;#{r:02x}{g:02x}{b:02x}\x1b\\")?; - } - // If it was RGB and it no longer is, or we have no background now, clear it. - (Some(Color::Rgb { .. }), Some(_)) | (_, None) => write!(self.writer, "\x1b]111\x1b\\")?, - _ => (), - }; + if self.osc11_background { + match (self.last_cleared_background_color, self.background_color) { + (_, Some(Color::Rgb { r, g, b })) => { + // Set background via OSC 11 if we have an RGB color + write!(self.writer, "\x1b]11;#{r:02x}{g:02x}{b:02x}\x1b\\")?; + } + // If it was RGB and it no longer is, or we have no background now, clear it. + (Some(Color::Rgb { .. }), Some(_)) | (_, None) => write!(self.writer, "\x1b]111\x1b\\")?, + _ => (), + }; + } self.last_cleared_background_color = self.background_color; self.writer.queue(terminal::Clear(terminal::ClearType::All))?; self.cursor_row = 0; @@ -228,8 +233,10 @@ impl<I: TerminalWrite> Drop for Terminal<I> { fn drop(&mut self) { - if let Some(Color::Rgb { .. }) = self.background_color { - let _ = write!(self.writer, "\x1b]111\x1b\\"); + if self.osc11_background { + if let Some(Color::Rgb { .. }) = self.background_color { + let _ = write!(self.writer, "\x1b]111\x1b\\"); + } } self.writer.deinit(); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/presenterm-0.15.0/src/theme/raw.rs new/presenterm-0.15.1/src/theme/raw.rs --- old/presenterm-0.15.0/src/theme/raw.rs 2025-07-13 22:50:27.000000000 +0200 +++ new/presenterm-0.15.1/src/theme/raw.rs 2025-08-03 22:39:24.000000000 +0200 @@ -87,7 +87,7 @@ impl PresentationTheme { /// Construct a presentation from a path. pub(crate) fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, LoadThemeError> { - let contents = fs::read_to_string(&path)?; + let contents = fs::read_to_string(&path).map_err(|e| LoadThemeError::Reading(path.as_ref().into(), e))?; let theme = serde_yaml::from_str(&contents) .map_err(|e| LoadThemeError::Corrupted(path.as_ref().display().to_string(), e.into()))?; Ok(theme) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/presenterm-0.15.0/src/theme/registry.rs new/presenterm-0.15.1/src/theme/registry.rs --- old/presenterm-0.15.0/src/theme/registry.rs 2025-07-13 22:50:27.000000000 +0200 +++ new/presenterm-0.15.1/src/theme/registry.rs 2025-08-03 22:39:24.000000000 +0200 @@ -1,5 +1,9 @@ use super::raw::PresentationTheme; -use std::{collections::BTreeMap, fs, io, path::Path}; +use std::{ + collections::BTreeMap, + fs, io, + path::{Path, PathBuf}, +}; include!(concat!(env!("OUT_DIR"), "/themes.rs")); @@ -31,11 +35,10 @@ let mut dependencies = BTreeMap::new(); for entry in handle { let entry = entry?; - let metadata = entry.metadata()?; let Some(file_name) = entry.file_name().to_str().map(ToOwned::to_owned) else { continue; }; - if metadata.is_file() && file_name.ends_with(".yaml") { + if file_name.ends_with(".yaml") { let theme_name = file_name.trim_end_matches(".yaml"); if THEMES.contains_key(theme_name) { return Err(LoadThemeError::Duplicate(theme_name.into())); @@ -125,6 +128,9 @@ #[error(transparent)] Io(#[from] io::Error), + #[error("failed to read custom theme {0:?}: {1}")] + Reading(PathBuf, io::Error), + #[error("theme '{0}' is corrupted: {1}")] Corrupted(String, Box<dyn std::error::Error>), ++++++ vendor.tar.zst ++++++ /work/SRC/openSUSE:Factory/presenterm/vendor.tar.zst /work/SRC/openSUSE:Factory/.presenterm.new.1085/vendor.tar.zst differ: char 7, line 1
