Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Pamixer not working with pipewire-pulse
@ 2021-09-28 15:48 timsofteng
  2021-09-28 16:56 ` FollieHiyuki
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: timsofteng @ 2021-09-28 15:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 624 bytes --]

New issue by timsofteng on void-packages repository

https://github.com/void-linux/void-packages/issues/33167

Description:
Hello.
I've faced up with trouble with pipewire-pulse.
I use sway wm with seatd and exec pipewire and pipewire-pulse from it config.
They run fine.
But when I try to do something with pactl or pamixer I get error
`XDG_RUNTIME_DIR (/tmp) is not owned by us (uid 1000), but by uid 0! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
Connection error`

What do I do wrong?
How can I manipulate with pulse layer?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Pamixer not working with pipewire-pulse
  2021-09-28 15:48 [ISSUE] Pamixer not working with pipewire-pulse timsofteng
@ 2021-09-28 16:56 ` FollieHiyuki
  2021-09-28 18:38 ` timsofteng
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: FollieHiyuki @ 2021-09-28 16:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

New comment by FollieHiyuki on void-packages repository

https://github.com/void-linux/void-packages/issues/33167#issuecomment-929407474

Comment:
The error literally said what went wrong.
I assume your $XDG_RUNTIME_DIR is set to `/tmp` which is owned by root. You should make it a subdir of `/tmp` instead.

For example, here is a snippet from the script I use to start sway:
```bash
if [ -z "${XDG_RUNTIME_DIR}" ]
then
	userid=$(id -u ${USER})
	export XDG_RUNTIME_DIR="$(mktemp -d /tmp/${userid}-runtime-XXXXXX)"
	if [ ! -d "${XDG_RUNTIME_DIR}" ]
	then
		mkdir -p "${XDG_RUNTIME_DIR}"
		chmod 0700 "${XDG_RUNTIME_DIR}"
	fi
fi

```

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Pamixer not working with pipewire-pulse
  2021-09-28 15:48 [ISSUE] Pamixer not working with pipewire-pulse timsofteng
  2021-09-28 16:56 ` FollieHiyuki
@ 2021-09-28 18:38 ` timsofteng
  2021-09-28 18:39 ` timsofteng
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: timsofteng @ 2021-09-28 18:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

New comment by timsofteng on void-packages repository

https://github.com/void-linux/void-packages/issues/33167#issuecomment-929523472

Comment:
> The error literally said what went wrong. I assume your $XDG_RUNTIME_DIR is set to `/tmp` which is owned by root. You should make it a subdir of `/tmp` instead.
> 
> For example, here is a snippet from the script I use to start sway:
> 
> ```shell
> if [ -z "${XDG_RUNTIME_DIR}" ]
> then
> 	userid=$(id -u ${USER})
> 	export XDG_RUNTIME_DIR="$(mktemp -d /tmp/${userid}-runtime-XXXXXX)"
> 	if [ ! -d "${XDG_RUNTIME_DIR}" ]
> 	then
> 		mkdir -p "${XDG_RUNTIME_DIR}"
> 		chmod 0700 "${XDG_RUNTIME_DIR}"
> 	fi
> fi
> ```

What if I just will set this variable to /home/username/.tmp?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Pamixer not working with pipewire-pulse
  2021-09-28 15:48 [ISSUE] Pamixer not working with pipewire-pulse timsofteng
  2021-09-28 16:56 ` FollieHiyuki
  2021-09-28 18:38 ` timsofteng
@ 2021-09-28 18:39 ` timsofteng
  2021-09-28 18:50 ` FollieHiyuki
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: timsofteng @ 2021-09-28 18:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

New comment by timsofteng on void-packages repository

https://github.com/void-linux/void-packages/issues/33167#issuecomment-929523472

Comment:
> The error literally said what went wrong. I assume your $XDG_RUNTIME_DIR is set to `/tmp` which is owned by root. You should make it a subdir of `/tmp` instead.
> 
> For example, here is a snippet from the script I use to start sway:
> 
> ```shell
> if [ -z "${XDG_RUNTIME_DIR}" ]
> then
> 	userid=$(id -u ${USER})
> 	export XDG_RUNTIME_DIR="$(mktemp -d /tmp/${userid}-runtime-XXXXXX)"
> 	if [ ! -d "${XDG_RUNTIME_DIR}" ]
> 	then
> 		mkdir -p "${XDG_RUNTIME_DIR}"
> 		chmod 0700 "${XDG_RUNTIME_DIR}"
> 	fi
> fi
> ```

What if I just will set this variable to /home/username/.tmp?
Without this script.
Should it work?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Pamixer not working with pipewire-pulse
  2021-09-28 15:48 [ISSUE] Pamixer not working with pipewire-pulse timsofteng
                   ` (2 preceding siblings ...)
  2021-09-28 18:39 ` timsofteng
@ 2021-09-28 18:50 ` FollieHiyuki
  2021-09-29  8:26 ` [ISSUE] [CLOSED] " timsofteng
  2021-09-29  8:26 ` timsofteng
  5 siblings, 0 replies; 7+ messages in thread
From: FollieHiyuki @ 2021-09-28 18:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

New comment by FollieHiyuki on void-packages repository

https://github.com/void-linux/void-packages/issues/33167#issuecomment-929531677

Comment:
You can set it to anything, as long as it satisfies these:

> $XDG_RUNTIME_DIR defines the base directory relative to which user-specific non-essential runtime files and other file objects (such as sockets, named pipes, ...) should be stored. The directory MUST be owned by the user, and he MUST be the only one having read and write access to it. Its Unix access mode MUST be 0700. 

> It is automatically created the first time a user logs in and removed on the user's final logout. If a user logs in twice at the same time, both sessions will see the same $XDG_RUNTIME_DIR and the same contents. If a user logs in once, then logs out again, and logs in again, the directory contents will have been lost in between, but applications should not rely on this behavior and must be able to deal with stale files.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Pamixer not working with pipewire-pulse
  2021-09-28 15:48 [ISSUE] Pamixer not working with pipewire-pulse timsofteng
                   ` (4 preceding siblings ...)
  2021-09-29  8:26 ` [ISSUE] [CLOSED] " timsofteng
@ 2021-09-29  8:26 ` timsofteng
  5 siblings, 0 replies; 7+ messages in thread
From: timsofteng @ 2021-09-29  8:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

New comment by timsofteng on void-packages repository

https://github.com/void-linux/void-packages/issues/33167#issuecomment-929954921

Comment:
> You can set it to anything, as long as it satisfies these:


Thanks!
I've just created `~/.local/tmp/` dir without scripts and looks like now it works.
I close this issue.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ISSUE] [CLOSED] Pamixer not working with pipewire-pulse
  2021-09-28 15:48 [ISSUE] Pamixer not working with pipewire-pulse timsofteng
                   ` (3 preceding siblings ...)
  2021-09-28 18:50 ` FollieHiyuki
@ 2021-09-29  8:26 ` timsofteng
  2021-09-29  8:26 ` timsofteng
  5 siblings, 0 replies; 7+ messages in thread
From: timsofteng @ 2021-09-29  8:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

Closed issue by timsofteng on void-packages repository

https://github.com/void-linux/void-packages/issues/33167

Description:
Hello.
I've faced up with trouble with pipewire-pulse.
I use sway wm with seatd and exec pipewire and pipewire-pulse from it config.
They run fine.
But when I try to do something with pactl or pamixer I get error
`XDG_RUNTIME_DIR (/tmp) is not owned by us (uid 1000), but by uid 0! (This could e.g. happen if you try to connect to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)
Connection error`

What do I do wrong?
How can I manipulate with pulse layer?


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-29  8:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 15:48 [ISSUE] Pamixer not working with pipewire-pulse timsofteng
2021-09-28 16:56 ` FollieHiyuki
2021-09-28 18:38 ` timsofteng
2021-09-28 18:39 ` timsofteng
2021-09-28 18:50 ` FollieHiyuki
2021-09-29  8:26 ` [ISSUE] [CLOSED] " timsofteng
2021-09-29  8:26 ` timsofteng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).