https://bugs.kde.org/show_bug.cgi?id=473780

ratijas <m...@ratijas.tk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|REPORTED                    |CONFIRMED

--- Comment #2 from ratijas <m...@ratijas.tk> ---
Can confirm that PID inside Flatpak running instance is living in a separate
namespace from the host.

❯ flatpak ps
Instance   PID   Application          Runtime
574133368  61939 im.riot.Riot         org.freedesktop.Platform
2219558800 61908 im.riot.Riot         org.freedesktop.Platform
505331848  5742  org.telegram.desktop org.freedesktop.Platform
❯ flatpak enter 505331848 /bin/bash
bash-5.1$ ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
ratijas        1  0.0  0.0   3148  1152 ?        S    14:17   0:00 bwrap --args
41 /app/bin/telegram-desktop
ratijas        2  2.3  3.2 2605696 527932 ?      Sl   14:17   9:25
/app/bin/telegram-desktop
ratijas     3180  0.0  0.0   4896  3584 pts/6    S    21:03   0:00 /bin/bash
ratijas     3181  0.0  0.0   7224  2944 pts/6    R+   21:03   0:00 ps aux
bash-5.1$ 
exit
❯ flatpak enter 2219558800 /bin/bash
bash-5.1$ ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
ratijas        1  0.0  0.0   3148  1152 ?        S    16:06   0:00 bwrap --args
40 /app/bin/element
ratijas        2  0.0  0.0   7708  1664 ?        S    16:06   0:00 /bin/bash
/app/bin/element
ratijas        3  0.5  0.8 1177638940 135556 ?   SLl  16:06   1:41
/app/Element/element-desktop --enable-features=WebRTCPipeWireCapturer
ratijas        6  0.0  0.0   5776  1408 ?        S    16:06   0:00 cat
ratijas        7  0.0  0.0   5776  1408 ?        S    16:06   0:00 cat
ratijas       11  0.0  0.2 33782004 38656 ?      S    16:06   0:00
/app/Element/element-desktop --type=zygote --no-zygote-sandbox
ratijas       13  0.0  0.0      0     0 ?        Z    16:06   0:00
[zypak-sandbox] <defunct>
ratijas       16  0.0  0.0   3148  1280 ?        S    16:06   0:00 bwrap --args
40 /app/bin/zypak-helper child - /app/Element/element-desktop --type=zygote
ratijas       17  0.0  0.2 33784380 43520 ?      S    16:06   0:00
/app/Element/element-desktop --type=zygote
ratijas       52  0.2  0.3 33848236 58776 ?      Sl   16:06   0:36
/app/Element/element-desktop --type=utility
--utility-sub-type=network.mojom.NetworkService --lang=en-US --ser
ratijas       72  2.0  1.9 1190042736 313312 ?   Sl   16:06   6:04
/app/Element/element-desktop --type=renderer
--enable-crash-reporter=c2493621-53db-4c47-b793-81c24740e514,no_c
ratijas       93  1.6  0.4 33957612 65388 ?      Sl   16:06   5:00
/app/Element/element-desktop --type=gpu-process
--enable-crash-reporter=c2493621-53db-4c47-b793-81c24740e514,n
ratijas      653  0.0  0.3 33900132 62028 ?      Sl   17:22   0:01
/app/Element/element-desktop --type=utility
--utility-sub-type=audio.mojom.AudioService --lang=en-US --service
ratijas     1833  0.0  0.0   4896  3712 pts/6    S    21:04   0:00 /bin/bash
ratijas     1834  0.0  0.0   7224  2944 pts/6    R+   21:04   0:00 ps aux
bash-5.1$ 


Now, how do we end up using conteinerazied PID to slap an icon onto a host
process…

By the way, reproducible on both Plasma 5.27 and master. The code hasn't
changed significantly in years or even decades.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to