How can one get executable file-path for a window which is launched as FlatPak application?

I know that xprop | awk ‘/PID/ {print $3}’ | xargs ps and xprop | awk ‘/COMMAND/ {print $4}’ | xargs which work great with GUI applications which are deb-packaged, AppImage’d or Snap’d. But this method does not give executable file-name for application which is packaged as FlatPak. See example below: $ flatpak run org.libretro.RetroArch…

Discover more

Is there a more robust rename alternative than select with triple exclamation mark?

I have the following simplified use-case and it fails, stating that a column isn’t there, which is correct. In my real use-case, this tibble comes from parsing an XML, which may not include all the expected columns but a subset in a few cases, i.e., missing values: library(tidyverse) mapping <- c(‘a’, ‘b’, ‘c’) names(mapping) <-…

Discover more

How to remove all combination with the same element in subarray from array?

I have this array [[1,2,3],[4,1,6],[1,3,2],[1,2,4],[3,1,2],[4,6,1],[9,9,9]] and I want a function that do this: [[1,2,3],[4,1,6],[1,2,4],[9,9,9]]. This function removes all subarray with the same value. I thought about a filter like this .filter(el => el.filter(value => array2.includes(value))) But I don’t think it will work. PS: I use node.js EDIT: Weirdly, many of your answer work PERFECTLY with…

Discover more