Open spacefall opened 1 year ago
I was not able to replicate with yay -S butter-git
.
Can you please also provide the full install log?
Sorry for the delay, I've uninstalled (with pacman -Rns), recompiled and reinstalled the package, and butter still crashes with the same error. These are all the logs I could find:
/var/log/pacman.log doesn't give much info:
[2023-08-29T22:49:26+0200] [PACMAN] Running '/usr/bin/pacman -U /home/user/test/butter-git/butter-git-1.0.r172.9263841-1-x86_64.pkg.tar.zst'
[2023-08-29T22:49:28+0200] [ALPM] transaction started
[2023-08-29T22:49:28+0200] [ALPM] reinstalled butter-git (1.0.r172.9263841-1)
[2023-08-29T22:49:28+0200] [ALPM] transaction completed
[2023-08-29T22:49:28+0200] [ALPM] running '30-systemd-daemon-reload.hook'...
[2023-08-29T22:49:28+0200] [ALPM] running '30-systemd-update.hook'...
[2023-08-29T22:49:28+0200] [ALPM] running 'dbus-reload.hook'...
[2023-08-29T22:49:28+0200] [ALPM] running 'glib-compile-schemas.hook'...
[2023-08-29T22:49:29+0200] [ALPM] running 'gtk-update-icon-cache.hook'...
[2023-08-29T22:49:29+0200] [ALPM] running 'pkgfile.hook'...
[2023-08-29T22:49:29+0200] [ALPM] running 'update-desktop-database.hook'...
butter-git-1.0.r172.9263841-1-x86_64-package.log:
ninja: Entering directory `/home/user/test/butter-git/src/butter-git/build'
[0/1] Generating src/cargo_build_butter with a custom command
cargo build skipped: running as root
Installing data/resources/resources.gresource to /home/user/test/butter-git/pkg/butter-git/usr/share/butter
Installing po/fr/LC_MESSAGES/butter.mo to /home/user/test/butter-git/pkg/butter-git/usr/share/locale/fr/LC_MESSAGES
Installing po/zh_CN/LC_MESSAGES/butter.mo to /home/user/test/butter-git/pkg/butter-git/usr/share/locale/zh_CN/LC_MESSAGES
Installing po/ta/LC_MESSAGES/butter.mo to /home/user/test/butter-git/pkg/butter-git/usr/share/locale/ta/LC_MESSAGES
Installing src/butter to /home/user/test/butter-git/pkg/butter-git/usr/bin
Installing src/butterd to /home/user/test/butter-git/pkg/butter-git/usr/lib
Installing new directory /home/user/test/butter-git/pkg/butter-git/etc/butter/schedules
Installing /home/user/test/butter-git/src/butter-git/build/data/org.zhangyuannie.butter.policy to /home/user/test/butter-git/pkg/butter-git/usr/share/polkit-1/actions
Installing /home/user/test/butter-git/src/butter-git/data/org.zhangyuannie.Butter.desktop to /home/user/test/butter-git/pkg/butter-git/usr/share/applications
Installing /home/user/test/butter-git/src/butter-git/data/org.zhangyuannie.Butter.gschema.xml to /home/user/test/butter-git/pkg/butter-git/usr/share/glib-2.0/schemas
Installing /home/user/test/butter-git/src/butter-git/build/data/butter-schedule-snapshot.service to /home/user/test/butter-git/pkg/butter-git/usr/lib/systemd/system
Installing /home/user/test/butter-git/src/butter-git/build/data/butter-schedule-prune.service to /home/user/test/butter-git/pkg/butter-git/usr/lib/systemd/system
Installing /home/user/test/butter-git/src/butter-git/data/butter-schedule-snapshot.timer to /home/user/test/butter-git/pkg/butter-git/usr/lib/systemd/system
Installing /home/user/test/butter-git/src/butter-git/data/butter-schedule-prune.timer to /home/user/test/butter-git/pkg/butter-git/usr/lib/systemd/system
Installing /home/user/test/butter-git/src/butter-git/data/org.zhangyuannie.Butter1.conf to /home/user/test/butter-git/pkg/butter-git/usr/share/dbus-1/system.d
Installing /home/user/test/butter-git/src/butter-git/build/data/org.zhangyuannie.Butter1.service to /home/user/test/butter-git/pkg/butter-git/usr/share/dbus-1/system-services
Installing /home/user/test/butter-git/src/butter-git/data/icons/hicolor/scalable/apps/org.zhangyuannie.Butter.svg to /home/user/test/butter-git/pkg/butter-git/usr/share/icons/hicolor/scalable/apps
Installing /home/user/test/butter-git/src/butter-git/data/icons/hicolor/symbolic/apps/org.zhangyuannie.Butter-symbolic.svg to /home/user/test/butter-git/pkg/butter-git/usr/share/icons/hicolor/symbolic/apps
Running custom install script '/home/user/test/butter-git/src/butter-git/scripts/restorecon /usr/lib/systemd/system/butter-schedule-snapshot.service /usr/lib/systemd/system/butter-schedule-prune.service /usr/lib/systemd/system/butter-schedule-snapshot.timer /usr/lib/systemd/system/butter-schedule-prune.timer /usr/bin/butter'
Skipping custom install script because DESTDIR is set '/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas'
Skipping custom install script because DESTDIR is set '/usr/bin/gtk4-update-icon-cache -q -t -f /usr/share/icons/hicolor'
Skipping custom install script because DESTDIR is set '/usr/bin/update-desktop-database -q /usr/share/applications'
This is weird. In your logs, it also implies that specific directory is installed:
Installing new directory /home/user/test/butter-git/pkg/butter-git/etc/butter/schedules
Anyways, in this case, I'll just create that directory if it doesn't exist at runtime then. Thanks for reporting!
To Reproduce
Expected Behavior
The application should open without issues
Actual Behavior
The application crashes and prints this: "thread 'main' panicked at 'Failed to connect to system dbus: org.zhangyuannie.Butter1.Failed: Failed to read config directory', src/bin/butter.rs:41:30
I was able to fix this with sudo mkdir /etc/butter/schedules/ --parents but it's weird that the dir wasn't created during installation even if meson seems to be configured to create it.
Environment