Package: cappuccino
Version: 0.5.1-9.1
Severity: minor

Because there is no .desktop file, and my test desktop is built without a 
terminal emulator, I tried running cappuccino as root:

    bash$ ssh root@bootstrap2020 'DISPLAY=:0 XAUTHORITY=$(echo 
/var/lib/xdm/authdir/authfiles/*)' cappuccino
    Warning: Permanently added '[localhost]:2022' (ED25519) to the list of 
known hosts.
    __main__.py:148: PyGIDeprecationWarning: GObject.timeout_add is deprecated; 
use GLib.timeout_add instead
    /bin/sh: 1: polygen: not found
    __main__.py:72: DeprecationWarning: Gtk.Alignment.set is deprecated
    /bin/sh: 1: polygen: not found
    __main__.py:84: PyGIDeprecationWarning: GObject.timeout_add is deprecated; 
use GLib.timeout_add instead
    __main__.py:85: PyGIDeprecationWarning: GObject.timeout_add is deprecated; 
use GLib.timeout_add instead
    /bin/sh: 1: polygen: not found
    Traceback (most recent call last):
      File "__main__.py", line 107, in update_log
    IndexError: pop from empty list
    /bin/sh: 1: polygen: not found

This is happening because /usr/games/polygen is not in the default $PATH unless 
you 1) log in as a non-root user; and 2) pass through PAM session.
In the above case, neither (1) nor (2) happens.
For (2) it does not happen because "ssh host command" bypasses the login shell.

These situations are unlikely to occur, but given the failure
behaviour is pretty weird, I think simply hard-coding the default path
to "/usr/games/polygen" instead of "polygen" would suffice.

The manpage didn't suggest any CLI option to easily work around this.

PS: note that cappuccino itself is NOT installed in /usr/games/.
Moving it there would, I guess, be an equally easy fix.


-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 
'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.14.0-0.bpo.2-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to