Bug 27494

Summary: draksound can't be launched as user, crash occurs
Product: Mageia Reporter: papoteur <yvesbrungard>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: ouaurelien
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA7TOO
Source RPM: drakxtools-curses CVE:
Status comment:

Description papoteur 2020-11-01 10:20:15 CET
Description of problem:
when draksound is launched as user, crash occurs:
Le programme « draksound » a planté avec l'erreur suivante :

  you must be root to run this program at /usr/lib/libDrakX/common.pm line 596.
  Perl's trace:
  drakbug::bug_handler() called from /usr/lib/libDrakX/common.pm:596
  common::require_root_capability() called from /usr/lib/libDrakX/interactive.pm:103
  interactive::vnew() called from /sbin/draksound:30
When run as root, we get advertising that running as root is not recommended (cauldron only):
XDG_RUNTIME_DIR (/run/user/1000) isnot owned by us ... you try to connect to a non-root Pulseaudio as root user ... Don't do that.

How reproducible: always
papoteur 2020-11-01 10:21:02 CET

Assignee: bugsquad => mageiatools
Whiteboard: (none) => MGA7TOO

Comment 1 Aurelien Oudelet 2020-11-01 11:06:51 CET
Hi, thanks reporting this.

In facts, running draksound as user under command line seems not the "intuitive" way to run it.
It will be more user-friendly that we get this instead:
"Please run draksound under MCC" than crashing.

MITIGATION: under MCC, draksound runs fine.

The comment on: "XDG_RUNTIME_DIR (/run/user/1000) is not owned by us ... you try to connect to a non-root Pulseaudio as root user ... Don't do that."
is an upstream "feature" as running Pulseaudio as root is not supported.

Already assigned to Maintainer group.

CC: (none) => ouaurelien

Comment 2 Aurelien Oudelet 2020-11-01 11:14:04 CET
I add that draksound is not available under NCURSES MCC...

$ LANG=C DISPLAY= mcc

This return a menu with:

Choose the tool you want to use:
3D Desktop effects
Auto Install
Boot loader 
Display
Firewall
Firewall6
Internet connection sharing
Keyboard
Mouse
Network & Internet
Partitions
Services
Users and groups