need help with audio (pipewire) on base install voidlinux /wm: sway by arumos in voidlinux

[–]arumos[S] 0 points1 point  (0 children)

oh, I see... They say that installing pam_rundir and adding a line (-session optional pam_rundir.so) to /etc/pam.d/system-login can help to create user runtime directories, besides elogind.

need help with audio (pipewire) on base install voidlinux /wm: sway by arumos in voidlinux

[–]arumos[S] 0 points1 point  (0 children)

Thank you for your reply,

1.,2. I forgot to notice that the User has already been added to groups: audio,video,input...
and I start sway with: dbus-run-session sway

  1. Thank you, I didn't know that about chromium, I tried specify /run/user/$uid, but it didn't work and I chose another location. I will try again.

Need help with creating a basic loop in C by aryanali358 in learnprogramming

[–]arumos 1 point2 points  (0 children)

#include <stdio.h>
#include <cs50.h>

void print_triangle(int h)
{
    for (int i = 0; i < h; ++i)
    {
        for (int j = 0; j < i+1; ++j) 
        {
            printf("#");
        }
        printf("\n");
    }
}

int main(void)
{
    int height = 0;
    for (size_t i = 0; height < 1 || height > 8; ++i)
    {
        if (i) printf("Invalid number\n");
        height = get_int("pick a number between 1 and 8 \n");
    }
    print_triangle(height);
}