Skip to content

freebsd: Portable start-cosmic based on XFCE4 - #238

Open
joshuamegnauth54 wants to merge 1 commit into
pop-os:masterfrom
joshuamegnauth54:portable-start-cosmic
Open

joshuamegnauth54 wants to merge 1 commit into
pop-os:masterfrom
joshuamegnauth54:portable-start-cosmic

Conversation

@joshuamegnauth54

Copy link
Copy Markdown
Contributor

The current script hard codes a few paths that may differ across Unixes. For example, FreeBSD installs non-base binaries into /usr/local/bin instead of /usr/bin. We can leverage $PATH for these binaries.

Additionally, $XDG_RUNTIME_DIR may be unset without logind. XFCE4 sets XDG_RUNTIME_DIR if it's unset.

The logic for these changes are directly lifted from startxfce4.

As for the desktop file, the hard coded path isn't necessary as Exec checks path. I confirmed this by looking through multiple desktop entries. Also, the other COSMIC apps don't hard code the path, except cosmic-comp which I'll go fix now.


  • I have not included any LLM (also known as AI) generated content in this PR, including code, comments, and descriptions.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.
  • I have read and followed all of the above requirements. For more information, see our contributor guide.

The current script hard codes a few paths that may differ across Unixes.
For example, FreeBSD installs non-base binaries into /usr/local/bin
instead of /usr/bin. We can leverage $PATH for these binaries.

Additionally, $XDG_RUNTIME_DIR may be unset without logind. XFCE4 sets
XDG_RUNTIME_DIR if it's unset.

The logic for these changes are directly lifted from startxfce4.

As for the desktop file, the hard coded path isn't necessary as Exec
checks path. I confirmed this by looking through multiple desktop
entries. Also, the other COSMIC apps don't hard code the path, except
cosmic-comp which I'll go fix now.
@mmstick
mmstick requested review from a team October 22, 2026 18:45
@jklgrasso jklgrasso self-assigned this Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants