You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Fedora Atomic images uses a read-only root filesystem and discourage installing packages the traditional way (i.e dnf) and prioritize Flatpaks/AppImages/brew/"things not installing into /usr"
Describe the solution you'd like
It would be nice if gsmartcontrol can be distributed as an AppImage to be able to use it on these systems.
Describe alternatives you've considered
Creating a rootful distrobox and installing gsmartcontrol in it, but that's a lot of disk space wasted for just one app.
Layering traditional dnf packages in Fedora Atomic is possible - but highly discouraged.
Additional context
I had to make gsmartcontrol look for its data files in a portable way (i.e not hardcoding /usr/share) and this is how I managed to do that. (gsc_init.c)
I had to remove the gsmartcontrol-root script and just put the binary in /bin like a regular package (plus changing the desktop file exec entry to match) - because the AppImage format does not support running an embedded binary in it with sudo. This also require the AppImage to be run with sudo.
The gsmartcontrol.appdata.in.xml file had to either be deleted or changed a little as currently it does not pass appstreamcli's checks.
IDs should be in rDNS format, so <id>dev.shaduri.gsmartcontrol</id> instead of <id>gsmartcontrol</id>
Desktop filename must match ID - so <launchable type="desktop-id">dev.shaduri.gsmartcontrol.desktop</launchable> instead of <launchable type="desktop-id">gsmartcontrol.desktop</launchable> (plus the real desktop filename must be changed to match also).
After all that was done I successfully built the AppImage and confirm it works.
The text was updated successfully, but these errors were encountered:
Would you mind sharing the steps you did (aside from patching) to build the AppImage? A script, for example.
Regarding the data file search, since I do not want to lose the pkgdir feature, I'm inclined to add a cmake switch (visible via BuildEnv) for AppImage builds. Do you think there is a better solution?
Patch the source code and build with -DCMAKE_INSTALL_PREFIX=/usr, then DESTDIR=gsmartcontrol make install to create the base appimage folder, named gsmartcontrol.
Patch the gsmartcontrol.appdata.in.xml file as above, and change the desktop entry filename to match.
Remove the gsmartcontrol-root script from /bin, put the original binary and delete the empty /sbin folder (more or less launching the app the "standard way" due to appimage limitations), then change the desktop entry Exec line to gsmartcontrol
Version and Environment
Is your feature request related to a problem? Please describe.
Fedora Atomic images uses a read-only root filesystem and discourage installing packages the traditional way (i.e dnf) and prioritize Flatpaks/AppImages/brew/"things not installing into
/usr
"Describe the solution you'd like
It would be nice if gsmartcontrol can be distributed as an AppImage to be able to use it on these systems.
Describe alternatives you've considered
Creating a rootful distrobox and installing gsmartcontrol in it, but that's a lot of disk space wasted for just one app.
Layering traditional dnf packages in Fedora Atomic is possible - but highly discouraged.
Additional context
/usr/share
) and this is how I managed to do that. (gsc_init.c
)gsmartcontrol-root
script and just put the binary in/bin
like a regular package (plus changing the desktop file exec entry to match) - because the AppImage format does not support running an embedded binary in it with sudo. This also require the AppImage to be run with sudo.gsmartcontrol.appdata.in.xml
file had to either be deleted or changed a little as currently it does not passappstreamcli
's checks.<id>dev.shaduri.gsmartcontrol</id>
instead of<id>gsmartcontrol</id>
<launchable type="desktop-id">dev.shaduri.gsmartcontrol.desktop</launchable>
instead of<launchable type="desktop-id">gsmartcontrol.desktop</launchable>
(plus the real desktop filename must be changed to match also).After all that was done I successfully built the AppImage and confirm it works.
The text was updated successfully, but these errors were encountered: