Bug 27494 - draksound can't be launched as user, crash occurs
Summary: draksound can't be launched as user, crash occurs
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard: MGA7TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-01 10:20 CET by papoteur
Modified: 2020-11-01 11:14 CET (History)
1 user (show)

See Also:
Source RPM: drakxtools-curses
CVE:
Status comment:


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.