shell icon indicating copy to clipboard operation
shell copied to clipboard

[BUG] Shell doesn't start

Open mycelee opened this issue 1 year ago • 8 comments

Step 1. Before you submit

  • [x] I have read the above instructions and am sure that this is supposed to be posted here.
  • [x] I've successfully updated to the latest versions following the updating guide.
  • [x] I've successfully updated the system packages to the latest.
  • [ ] I've ticked the checkboxes without reading their contents

Step 2. Version info

Version info
Packages:
    caelestia-shell-git not installed
    caelestia-cli-git not installed
    caelestia-meta not installed


Caelestia:
    Last commit: 78c70ba6d487059e4b28126c4a15257cfd792d09
    Commit message: hypr: update pip bind 

Quickshell:
    quickshell 0.2.0, revision 704925ffbfc95040845047f69d31ccb038eabf65, distributed by: AUR (package: quickshell)

Local copy of shell found:
    Unable to determine last merged upstream commit.

    Last commit: aa66f3c8808f6f94d1a1cef9616c5b2f1b6a1c5c
    Commit message: nix: refactor 

Step 3. Describe the issue

Just pulled the latest commit and the shell no longer starts.

Logs
No running instances for "/home/huwu/.local/share/caelestia-shell/shell.qml"
  INFO: Launching config: "/home/huwu/.local/share/caelestia-shell/shell.qml"
  INFO: Shell ID: "0b10cfc1910ab10fa5cf8822ec123992" Path ID "0b10cfc1910ab10fa5cf8822ec123992"
  INFO: Saving logs to "/run/user/1000/quickshell/by-id/y01w6pl1t/log.qslog"
 ERROR: Failed to load configuration
 ERROR:   caused by @shell.qml[12:5]: Type Background unavailable
 ERROR:   caused by @modules/background/Background.qml[34:13]: Type Wallpaper unavailable
 ERROR:   caused by @modules/background/Wallpaper.qml[65:25]: Type FileDialog unavailable
 ERROR:   caused by @components/filedialog/FileDialog.qml[82:17]: Type FolderContents unavailable
 ERROR:   caused by @components/filedialog/FolderContents.qml[144:13]: Type CachingIconImage unavailable
 ERROR:   caused by @components/images/CachingIconImage.qml[25:5]: Type CachingImage unavailable
 ERROR:   caused by @components/images/CachingImage.qml[2:1]: module "Caelestia" is not installed

Reminder

  • [x] I agree that it's usually impossible for others to help me without my logs.

mycelee avatar Aug 26 '25 12:08 mycelee

I have to mention that I store all my caelestia files in ~/.local/share and symlink them (e.g. ~/.local/share/caelestia-shell -> ~/.config/quickshell/caelestia).

mycelee avatar Aug 26 '25 12:08 mycelee

I have the exact same issue, after update the shell no longer starts.

DigitalPals avatar Aug 26 '25 17:08 DigitalPals

To fix, you can do this:

  cd /tmp
  cp -r /etc/xdg/quickshell/caelestia/plugin caelestia-plugin
  cd caelestia-plugin
  mkdir build && cd build
  cmake .. -DINSTALL_QMLDIR=/usr/lib/qt6/qml
  make
  sudo make install

Then you restart Cealestia shell

DigitalPals avatar Aug 26 '25 17:08 DigitalPals

Temporarily you can roll back to the last CachingImage.qml file to fix the issue, if you've got shell installed manually it's in ~/.config/quickshell/caelestia/components/images/CachingImage.qml

Changes back the CUtils from "Caelestia" module which it says is not installed to

const grabPath = cachePath;
grabToImage(res => res.saveToFile(grabPath));

Replace the file with this:

import qs.utils
import Quickshell
import Quickshell.Io
import QtQuick

Image {
    id: root

    property string path
    property string hash
    readonly property url cachePath: `${Paths.imagecache}/${hash}@${effectiveWidth}x${effectiveHeight}.png`

    readonly property real effectiveScale: QsWindow.window?.devicePixelRatio ?? 1
    readonly property int effectiveWidth: Math.ceil(width * effectiveScale)
    readonly property int effectiveHeight: Math.ceil(height * effectiveScale)

    asynchronous: true
    fillMode: Image.PreserveAspectCrop
    sourceSize.width: effectiveWidth
    sourceSize.height: effectiveHeight

    onPathChanged: shaProc.exec(["sha256sum", Paths.strip(path)])

    onCachePathChanged: {
        if (hash)
            source = cachePath;
    }

    onStatusChanged: {
        if (source == cachePath && status === Image.Error)
            source = path;
        else if (source == path && status === Image.Ready) {
            Paths.mkdir(Paths.imagecache);
            const grabPath = cachePath;
            grabToImage(res => res.saveToFile(grabPath));
        }
    }

    Process {
        id: shaProc

        stdout: StdioCollector {
            onStreamFinished: root.hash = text.split(" ")[0]
        }
    }
}

Yogibliz avatar Aug 26 '25 18:08 Yogibliz

Interesting this new "Caelestia" module partially broke for nix users too

Markus328 avatar Aug 26 '25 19:08 Markus328

The problem is the line:

set(INSTALL_QMLDIR "" CACHE STRING "QML install dir")

should probably be something like:

set(INSTALL_QMLDIR "${CMAKE_INSTALL_PREFIX}/lib/qt6/qml")  # This is just a directory i tested, not sure if it's ideal.

This worked for me, but had to build everything manually, wouldn't recommend.

@soramanew, im guessing you missed filling out this set instruction?

Yogibliz avatar Aug 26 '25 20:08 Yogibliz

To fix, you can do this:

  cd /tmp
  cp -r /etc/xdg/quickshell/caelestia/plugin caelestia-plugin
  cd caelestia-plugin
  mkdir build && cd build
  cmake .. -DINSTALL_QMLDIR=/usr/lib/qt6/qml
  make
  sudo make install

Then you restart Cealestia shell

This helped a lot, thanks

mycelee avatar Aug 26 '25 20:08 mycelee

The readme has now been updated with the new manual installation method, you can follow that and it should work now.

soramanew avatar Aug 27 '25 05:08 soramanew