cosmic-epoch icon indicating copy to clipboard operation
cosmic-epoch copied to clipboard

can this desktop work without systemd ?

Open adcdam opened this issue 2 years ago • 12 comments

Can be build using cargo? i would really like to package this. Can the desktop be build using cargo and not using just?

adcdam avatar Apr 09 '23 01:04 adcdam

Can the desktop be build using cargo and not using just?

Just is essentially just calling cargo. You can use the Justfile as a reference for building it manually.

can this desktop work without systemd ?

It should be! But it might require systemd-development files during building for the optional features anyway. Note however that systemd-less systems have not received the same amount of testing and some bugfixes might be necessary. That said systemd is definitely not a hard dependency.

Drakulix avatar Apr 09 '23 17:04 Drakulix

i build to test fist using just

when i launch it say systemctl order not found
cannot open display "default display"
error : failed to connect to journald
no such file or directory (os error 2)
location 
src/main.rs:20

i saw source main.rs of cosmic session there is systemd mod here https://github.com/pop-os/cosmic-session/blob/master/src/main.rs

can this work with elogind? can someone do a just file that get the desktop work without systemd?

adcdam avatar Apr 10 '23 03:04 adcdam

i have this: usr: bin lib libexec share

usr/bin: cosmic-app-library cosmic-applet-notifications cosmic-osd cosmic-app-list cosmic-applet-power cosmic-panel cosmic-applet-audio cosmic-applet-time cosmic-session cosmic-applet-battery cosmic-applet-workspaces cosmic-settings cosmic-applet-bluetooth cosmic-bg cosmic-settings-daemon cosmic-applet-graphics cosmic-comp cosmic-workspaces cosmic-applet-network cosmic-launcher start-cosmic

usr/lib: extension-release.d

usr/lib/extension-release.d: extension-release.cosmic-sysext

usr/libexec: xdg-desktop-portal-cosmic

usr/share: applications cosmic dbus-1 icons metainfo wayland-sessions xdg-desktop-portal

usr/share/applications: com.system76.CosmicAppLibrary.desktop com.system76.CosmicAppList.desktop com.system76.CosmicAppletAudio.desktop com.system76.CosmicAppletBattery.desktop com.system76.CosmicAppletBluetooth.desktop com.system76.CosmicAppletGraphics.desktop com.system76.CosmicAppletNetwork.desktop com.system76.CosmicAppletNotifications.desktop com.system76.CosmicAppletPower.desktop com.system76.CosmicAppletTime.desktop com.system76.CosmicAppletWorkspaces.desktop com.system76.CosmicBackground.desktop com.system76.CosmicLauncher.desktop com.system76.CosmicSettings.desktop

usr/share/cosmic: com.system76.CosmicBackground

usr/share/cosmic/com.system76.CosmicBackground: v1

usr/share/cosmic/com.system76.CosmicBackground/v1: all backgrounds

usr/share/dbus-1: services

usr/share/dbus-1/services: org.freedesktop.impl.portal.desktop.cosmic.service

usr/share/icons: hicolor

usr/share/icons/hicolor: scalable symbolic

usr/share/icons/hicolor/scalable: apps

usr/share/icons/hicolor/scalable/apps: com.system76.CosmicAppLibrary.svg com.system76.CosmicAppletNotifications.svg com.system76.CosmicAppList.svg com.system76.CosmicAppletPower.svg com.system76.CosmicAppletAudio.svg com.system76.CosmicAppletTime.svg com.system76.CosmicAppletBattery.svg com.system76.CosmicAppletWorkspaces.svg com.system76.CosmicAppletBluetooth.svg com.system76.CosmicBackground.svg com.system76.CosmicAppletGraphics.svg com.system76.CosmicLauncher.svg com.system76.CosmicAppletNetwork.svg

usr/share/icons/hicolor/symbolic: apps

usr/share/icons/hicolor/symbolic/apps: com.system76.CosmicAppLibrary-symbolic.svg com.system76.CosmicLauncher-symbolic.svg com.system76.CosmicBackground-symbolic.svg

usr/share/metainfo: com.system76.CosmicAppLibrary.metainfo.xml com.system76.CosmicLauncher.metainfo.xml com.system76.CosmicBackground.metainfo.xml

usr/share/wayland-sessions: cosmic.desktop

usr/share/xdg-desktop-portal: portals

usr/share/xdg-desktop-portal/portals: cosmic.portal

adcdam avatar Apr 11 '23 01:04 adcdam

Cosmic-comp should work without systemd if compiled with --no-default-features: https://github.com/pop-os/cosmic-comp/pull/81

There probably is a better solution in the long term. I added that to get cosmic-comp working on FreeBSD.

ids1024 avatar Apr 11 '23 01:04 ids1024

Can the desktop be build using cargo and not using just?

I don't think any of the pkgbuilds im using have just, note they haven't been clean chroot tested, so im not sure if im missing any deps (I probably am) https://github.com/Quackdoc/pkgbuild-scripts/tree/Master/cosmic-epoch

Quackdoc avatar Apr 12 '23 17:04 Quackdoc

Am wondering this as well. Using Void with runit and elogind.

tukanoidd avatar Apr 29 '23 15:04 tukanoidd

It requires something to provide the logind dbus interface, and something to provide udev libs. From what I can see there are no hard systemd requirements.

flukejones avatar Aug 14 '23 00:08 flukejones

I personally prefer systemd to the alternatives, but I have raised a few PRs to help make systemd optional in COSMIC:

  • https://github.com/pop-os/cosmic-session/pull/32
  • https://github.com/pop-os/cosmic-session/pull/34

jokeyrhyme avatar Jan 11 '24 04:01 jokeyrhyme

Am wondering this as well. Using Void with runit and seatd.

JimitSoni18 avatar Jun 07 '24 15:06 JimitSoni18

it should work, I had it working in a chroot. the major thing should just be udev stuff. I don't think cosmic-session hard relies on anything systemd now.

Quackdoc avatar Jun 07 '24 15:06 Quackdoc

Still a problem on the attached machine. IMG_20240818_134451 Screenshot_20240818_135232 Is fixing this a priority?

SunilPaul174 avatar Aug 18 '24 10:08 SunilPaul174

@SunilPaul174 I don't speak for System76, but it seems like they'll merrily accept PRs for this

They just don't have anyone focused on this at all at the moment (it's probably not something they've prioritised for any of the alpha/beta milestones) because Pop!_OS itself (the primary target) has systemd

jokeyrhyme avatar Aug 18 '24 23:08 jokeyrhyme