10 questions from the last 7 days
2
votes
0
answers
46
views
How to programatically start a drag for an Electron app on X11
I've been trying to reimplement electron-click-drag-plugin for the needs of my Electron app. But I hit a hard wall when implementing it for X11. I've successfully sent the EWMH event, but it doesn't ...
-3
votes
2
answers
82
views
Can pipe buffer limits be increased from inside a container? [closed]
In Linux, can a process inside a docker container increase a pipe buffer size beyond the maximum configured in the host OS?
I'm trying to write code to stream files between two different network ...
0
votes
2
answers
73
views
Cannot set initial app window size in javafx
I'm not able to set the initial window size. The app always displays 200x200.
public class tcase extends Application
{
@Override
public void start(Stage primaryStage)
{...
0
votes
1
answer
50
views
Call different bpf helpers depending on kernel version?
I need to get the current system time in my BTF probe. How can I call bpf_ktime_get_boot_ns() on kernels 5.8 and newer, and bpf_ktime_get_ns() on older kernels where bpf_ktime_get_boot_ns is not yet ...
Advice
1
vote
1
replies
51
views
How does getty work with systemd-logind on a linux system? What are their architectures?
I need clarification, since I fail to find a proper explanation on the internet and I don't trust ChatGPT.
What's the difference between linux getty program and systemd-logind? I understand that both ...
3
votes
1
answer
121
views
Getting alerted when N cpu cycles consumed by polling the file descriptor
The code below works if I tell it to send a signal, but that'll be a pain because I'll do this for many threads as well as the whole process. It's supposed to work without any signal or handler but ...
1
vote
0
answers
111
views
Number of branches reported by perf stat not equal to real number of test command
I test a simple program via perf stat
#include <cassert>
#include <cstddef>
#include <iostream>
int main(int argc, const char* argv[]) {
assert(argc == 3);
int64_t iters = ...
Best practices
1
vote
4
replies
144
views
What is the best approach to writing a personal config symlink management scriptfor linux?
The problem i'm trying to solve
I currently manage my configuration files with GNU stow.
To summarize the purpose of stow: If i store all of my configuration folders in one directory (wezterm/, neovim/...
-3
votes
0
answers
46
views
Printer detected via USB but not via CUPS and thus printing is failing [closed]
I am running Debian Linux (forky/testing) with kernel 6.19.11 on a 64 bit machine. I have a brother laser printer (hl2130) and printing via it was fine until the last couple of days where the message ...
-1
votes
0
answers
80
views
Want pthread_cond_timedwait alternative for CLOCK_PROCESS_CPUTIME_ID [closed]
I want a "killer" thread to wait for a duration after which it thinks it'll have something to do while other "worker" threads modify how long that will be. I'm worried about the ...