GMediaRender default args on allo image for raspberry pi

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=0
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bookworm 0
  • Kernel version | uname -a
    Linux AlloPiMine 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Architecture | dpkg --print-architecture
    arm64
  • SBC model | echo $G_HW_MODEL_NAME
    RPi 4 Model B (aarch64)
  • Power supply used
    Raspberry Pi 15W USB-C 5.1V 3.0A DC
  • SD card used
    PNY Elite 32GB Class 10

Additional Information (if applicable)

  • Software title | GMediaRender
  • Was the software title installed freshly or updated/migrated? clean install via allo image
  • Can this issue be replicated on a fresh installation of DietPi? untested, but very likely

Steps to reproduce

  1. clean install of allo image for rpi via image flash to sd

Expected behaviour

  • in $ARGS (/etc/default/gmediarender), -f option should list hostname, or something friendly, i.e. “allo” or “gmrender” value
  • is interface option needed? " -I eth0" …
  • at present state, no value follows -f so the next option “-I” is interpreted as friendly name and interface option and value is ignored

Actual behaviour

  • attempt to stream to the device using bubbleupnp, select device from renderer list, find obscure “-I” as newly discovered device

Extra details

  • this appears to be a simple edit of the default $ARGS for gmediarender.service
  • perhaps expose the config file path /etc/default/gmediarender in the webgui for easy access/edit

EDIT added clarification to expected behavior.

@MichaIng probably you can have a look as you are the master of the GMediaRender package :slight_smile: )

1 Like

Thanks for reporting. It was intended that the hostname is set as friendly name, but I forgot that the $HOSTNAME variable exists only in bash, but not in bourne shell sh or dash. This should fix it: v9.1 · MichaIng/DietPi@a0d3107 · GitHub

It is also fixed on next DietPi update, if not manually done, with this command:

sed -i "s/ -f  -I / -f $HOSTNAME -I /" /etc/default/gmediarender
1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.