Skip to content

Commit

Permalink
docs(SddmWithFish): 📝 add
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Jan 19, 2025
1 parent 477c7bf commit 67a236e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "3.0.0",
"description": "拿去吧!",
"license": "AGPL-3.0-or-later",
"packageManager": "pnpm@9.14.4+sha512.c8180b3fbe4e4bca02c94234717896b5529740a6cbadf19fa78254270403ea2f27d4e1d46a08a0f56c89b63dc8ebfd3ee53326da720273794e6200fcf0d184ab",
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
"scripts": {
"dev": "cross-env DEV=true astro dev --host",
"start": "astro dev",
Expand Down
17 changes: 17 additions & 0 deletions src/content/posts/SddmWithFish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: 如何在使用 Fish 作为 Default Shell 的同时使用 SDDM
date: 2025-01-19 06:34:00
tag: [教程]
description: >
不知为何,从几年前开始,我就无法正常使用 SDDM。每次输入密码尝试登录时,SDDM 会闪退,然后重新回到登录界面,又或者直接回到 TTY。后来我知道这个问题叫“Failed to start Session”。这个问题一直困扰着我,直到我找到了原因与解决方案。
---

不知为何,从几年前开始,我就无法正常使用 [SDDM](https://github.com/sddm/sddm)。每次输入密码尝试登录时,SDDM 会闪退,然后重新回到登录界面,又或者直接回到 TTY。后来我知道这个问题叫“Failed to start Session”。这个问题一直困扰着我,直到我找到了原因与解决方案。

最难的是定位问题。我一开始以为这是 NVIDIA 的兼容性造成的,但即使我禁用独显,问题也依然存在。直到后来我发现,这个问题只有在将 Fish 设置为默认 Shell 以后才会出现。所以很显然,这是 SDDM 对 Fish 的兼容性问题。

经过检索,我发现早在 2023 年,就已经有人对 SDDM 提出了这个 [Pull Request](https://github.com/sddm/sddm/pull/1779),而直到 2025 年的今天,它也没有被合并。

接下来要做的就很简单了:直接从 Arch Linux 的 Repository 中拿下 PKGBUILD,修改之,加上来自上述 PR 的 Patch,重新编译安装即可。

详情请参照:<https://github.com/BeiyanYunyi/sddm-1779-PKGBUILD>

0 comments on commit 67a236e

Please sign in to comment.