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

Discussion Regarding Flatpak Build #100

Closed
root-reborn opened this issue Jun 25, 2024 · 1 comment
Closed

Discussion Regarding Flatpak Build #100

root-reborn opened this issue Jun 25, 2024 · 1 comment

Comments

@root-reborn
Copy link
Collaborator

root-reborn commented Jun 25, 2024

The 3 scripts nutty_nethogs_script.sh, nutty_device_monitor.sh, nutty_nmap_script.sh use sudo previlages to execute.Thats the reason other tabs are not displaying any info and are static after building and installing the Nutty flatpak and also giving error Failed to execute child process pkexec.Seems Flatpak doesn't support running application with elevated previlages.Flatpak also doesn't support pkexec which is part of Polkit(PolicyKit) that can be used to run certain commands with elevated privileges without giving full shell access.This behaviour is documented in the flatpak documentation at https://docs.flatpak.org/en/latest/introduction.html.

But I found a workaround.Flatpak applications like AnyDesk and Gnome Builder seems to have implemented polkit.You can see this from their flatpak manifests which are available in flathubs github repository:-
https://github.com/flathub/com.anydesk.Anydesk/blob/master/com.anydesk.Anydesk.json
https://github.com/flathub/org.gnome.Builder/blob/master/org.gnome.Builder.json
Can you help with the polkit implementation in Nutty to make it fully functional @babluboy

@root-reborn
Copy link
Collaborator Author

Added the Flatpak Manifest file(YAML file) and Build guide to the main repo for Nutty flatpak. As discussed via email, work on flatpak to access host OS network interface and execute sudo scripts on host os will be done in future. Closing the issue as of now.

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

No branches or pull requests

1 participant