(desktop: str)
| 792 | save_config(cfg) |
| 793 | |
| 794 | def desktop_start_cmd(desktop: str) -> str: |
| 795 | if desktop == "xfce": |
| 796 | return "dbus-launch --exit-with-session startxfce4" |
| 797 | if desktop == "lxde": |
| 798 | return "dbus-launch --exit-with-session startlxde" |
| 799 | if desktop == "openbox": |
| 800 | return "dbus-launch --exit-with-session openbox-session" |
| 801 | return "dbus-launch --exit-with-session fluxbox" |
| 802 | |
| 803 | def apply_xstartup(distro: str, desktop: str) -> None: |
| 804 | start_cmd = desktop_start_cmd(desktop) |
no outgoing calls
no test coverage detected