Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applications executed by portal placed under xdg-desktop-portal.service #497

Open
Piroro-hs opened this issue Sep 26, 2024 · 0 comments
Open

Comments

@Piroro-hs
Copy link

Opening browser (firefox) via OpenURI interface leads firefox to be placed under the xdg-desktop-portal.service cgroup.

$ systemctl status xdg-desktop-portal.service
● xdg-desktop-portal.service - Portal service
     Loaded: loaded (/usr/lib/systemd/user/xdg-desktop-portal.service; static)
     Active: active (running) since Thu 2024-09-26 20:29:02 JST; 14min ago
 Invocation: 72b9ce7220854c439f20dedb2d4905ed
   Main PID: 806 (xdg-desktop-por)
      Tasks: 255 (limit: 38070)
     Memory: 750.7M (peak: 1.1G)
        CPU: 14.768s
     CGroup: /user.slice/user-1000.slice/[email protected]/session.slice/xdg-desktop-portal.service
             ├─ 806 /usr/lib/xdg-desktop-portal
             ├─2713 /usr/lib/firefox/firefox https://archlinux.org/packages/extra/x86_64/vte-common/
             ├─2791 /usr/lib/firefox/firefox -contentproc -parentBuildID 20240924171327 -prefsLen 36390 -prefMapSize 258322 -appDir /usr/lib/firefox/browser {3d71a1a1-8c77-46a7-8649-aa5c34039b4a} 2713 true socket
             ├─2808 /usr/lib/firefox/firefox -contentproc -childID 1 -isForBrowser -prefsLen 36390 -prefMapSize 258322 -jsInitLen 234840 -parentBuildID 20240924171327 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appDir /usr/lib/firefox/browser {bfa16486-aa7e-407d-9bf2-0809c2bfd1fe} 2713 true tab
             ├─2966 /usr/bin/keepassxc-proxy /home/piroro/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json [email protected]
             ├─2995 /usr/lib/firefox/firefox -contentproc -parentBuildID 20240924171327 -sandboxingKind 0 -prefsLen 42665 -prefMapSize 258322 -appDir /usr/lib/firefox/browser {4be08548-6a12-4002-ac94-c81e1ee80c1e} 2713 true utility
             ├─3003 /usr/lib/firefox/firefox -contentproc -childID 3 -isForBrowser -prefsLen 42665 -prefMapSize 258322 -jsInitLen 234840 -parentBuildID 20240924171327 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appDir /usr/lib/firefox/browser {12560405-e003-43bb-b030-2c3f5f5063dd} 2713 true tab
             ├─3062 /usr/lib/firefox/firefox -contentproc -childID 6 -isForBrowser -prefsLen 34692 -prefMapSize 258322 -jsInitLen 234840 -parentBuildID 20240924171327 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appDir /usr/lib/firefox/browser {7d79e24a-2ccb-4c08-825c-e970b15f27b7} 2713 true tab
             ├─3251 /usr/lib/firefox/firefox -contentproc -childID 7 -isForBrowser -prefsLen 34789 -prefMapSize 258322 -jsInitLen 234840 -parentBuildID 20240924171327 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appDir /usr/lib/firefox/browser {5414a35d-04d8-4bf1-bb4f-e36941c881d4} 2713 true tab
             ├─3382 /usr/lib/firefox/firefox -contentproc -parentBuildID 20240924171327 -prefsLen 42947 -prefMapSize 258322 -appDir /usr/lib/firefox/browser {7f90925b-2f53-4220-9706-b77fb8d250eb} 2713 true rdd
             └─3401 /usr/lib/firefox/firefox -contentproc -childID 8 -isForBrowser -prefsLen 34789 -prefMapSize 258322 -jsInitLen 234840 -parentBuildID 20240924171327 -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appDir /usr/lib/firefox/browser {08ac5815-76f1-4957-a6ce-8b3fea19bc50} 2713 true tab

 9月 26 20:29:02 pc systemd[646]: Starting Portal service...
 9月 26 20:29:02 pc systemd[646]: Started Portal service.

I think these firefox related processes should live in its own scope like app-firefox-12345.scope inside app.slice .

I don't know whether this issue belongs to x-d-p or x-d-p-g, so please tell me if its not a right place.

x-d-p: 1.18.4
x-d-p-g: 1.15.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant