I am completely new to maintenance and this is my first attempt to submit a patch.
Please find attached the proposed changes, I hope these will suffice.
Format: 1.8 Date: Mon, 18 Sep 2023 13:43:33 +0100 Source: cappuccino Binary: cappuccino Architecture: source all Version: 0.5.1-10.2 Distribution: unstable Urgency: medium Maintainer: Breno Leitao <lei...@debian.org> Changed-By: William de Abreu Pinho <william.dap.deb...@gmail.com> Description: cappuccino - utility to let your boss think that you're working hard Closes: 1008564 Changes: cappuccino (0.5.1-10.2) unstable; urgency=medium . * Non-maintainer upload. * Fix polygen not found when running cappuccino as root. Closes: #1008564 Checksums-Sha1: c42f3eaab680e3815a5cd293096e8094ce851d5f 887 cappuccino_0.5.1-10.2.dsc f74d99f8289e55b494514e78efc8f96815b9a203 5146 cappuccino_0.5.1-10.2.diff.gz a8b667b8f7decf798dc5dc0bf91c541bd1857246 90792 cappuccino_0.5.1-10.2_all.deb 364ea9841bc505eaf00df515ba43105451405540 5600 cappuccino_0.5.1-10.2_amd64.buildinfo Checksums-Sha256: 0c30f7f7d1100d6a6f11fa9198c1316076302c487d75986fdc39a2a06031040f 887 cappuccino_0.5.1-10.2.dsc dae2322d37f4a8320e5835535bcd70d072cdbcf5e6d99bfac44dda16d3e07235 5146 cappuccino_0.5.1-10.2.diff.gz 1665ae2225114264cc9c74cf174ba4f88b0ccf9efd6378c09189ac084fe264da 90792 cappuccino_0.5.1-10.2_all.deb 6f7b2122d95c5d1b882ed872c65bb55bbf1184ace76590e77216d08fb44c5758 5600 cappuccino_0.5.1-10.2_amd64.buildinfo Files: 01420ac22f34501066cc99fb5004655f 887 games optional cappuccino_0.5.1-10.2.dsc 600553c08e23006ae9ca4944068a16b1 5146 games optional cappuccino_0.5.1-10.2.diff.gz e8e73c19297a2c10fe061562b188a1ab 90792 games optional cappuccino_0.5.1-10.2_all.deb 38337ff95f4db1edceb8f0031496384a 5600 games optional cappuccino_0.5.1-10.2_amd64.buildinfo
Fix polygen not found when running cappuccino as root. --- a/cappuccino +++ b/cappuccino @@ -20,14 +20,16 @@ except OSError: PLUGIN_DIR = "/usr/share/cappuccino/" +POLYGEN_PATHNAME = "/usr/games/polygen" + # text to see if polygen is available -if not os.access("/usr/games/polygen",os.X_OK): +if not os.access(POLYGEN_PATHNAME,os.X_OK): print ("Error: polygen must be installed") print ("See http://www.polygen.org") sys.exit(1) # to be discussed -pipe_command = 'polygen %s' % os.path.join(PLUGIN_DIR, 'cappuccino.grm') +pipe_command = '%s %s' % (POLYGEN_PATHNAME, os.path.join(PLUGIN_DIR, 'cappuccino.grm')) class CappuccinoSplash(Gtk.Window): def __init__(self): @@ -94,7 +96,7 @@ GObject.source_remove(self.timeouter) def get_log_data(self): - p = os.popen("polygen -X 50 %s" % os.path.join(PLUGIN_DIR,"compileline.grm")) + p = os.popen("%s -X 50 %s" % (POLYGEN_PATHNAME, os.path.join(PLUGIN_DIR,"compileline.grm"))) self.log = p.readlines() p.close()