Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong packaging path in DEB archives #1466

Open
SoftExpert opened this issue Nov 26, 2024 · 1 comment
Open

Wrong packaging path in DEB archives #1466

SoftExpert opened this issue Nov 26, 2024 · 1 comment

Comments

@SoftExpert
Copy link

Current behavior

The path under which DevToys is stored by the DEB package is /opt/devtoys/devtoys but it should be /opt/devtoys .
Changing it to its "natural" value would result in less packaging cruft in AUR for Arch based distros and also a more correct behavior of the application when launched with the .desktop files.

How to reproduce it (as minimally and precisely as possible)

Inspect any DEB package; you find binaries installed under /opt/devtoys/devtoys

Expected behavior

Expecting to find binaries installed under /opt/devtoys

Screenshots

image

Workaround

No response

Affected platforms

Linux

Affected DevToys kind

DevToys (app with GUI)

DevToys Version

any DEB package

Relevant Assets/Logs

No response

@yuvashrikarunakaran
Copy link

Current Behavior Issue
Path Issue:

The DEB package installs binaries under /opt/devtoys/devtoys, introducing an unnecessary subfolder.
This deviates from typical Linux application structure, where binaries in /opt are usually placed directly under /opt/.
Impact on Desktop Files:

Applications launched via .desktop files may face issues like incorrect working directories, which can affect file paths, icons, or runtime behavior.
Packaging Concerns for AUR:

For Arch-based distributions, the redundant path can create extra work for AUR package maintainers, leading to "packaging cruft."

Expected Behavior
The DEB package should place binaries directly under /opt/devtoys rather than /opt/devtoys/devtoys. This aligns with:

Linux Filesystem Hierarchy Standards (FHS): /opt/ should directly contain application files.
Consistency Across Platforms: It avoids unnecessary subdirectories, making the application more predictable to maintainers and users alike.

Proposed Fix
Adjust Packaging Scripts

Modify the DEB packaging scripts (control file and install commands) to install binaries directly to /opt/devtoys instead of /opt/devtoys/devtoys.
Update Desktop File Paths

Ensure .desktop files reference the correct binary location (/opt/devtoys) and set the working directory accordingly.
Backward Compatibility (Optional)

Add a transitional symlink (/opt/devtoys/devtoys -> /opt/devtoys) to avoid breaking workflows for existing users, then remove it in future updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants