nitjosh
September 20, 2022, 7:06am
#1
Hello All,
I am new to flatpak and have started working to create flatpak package for WWAN enablement i.e flatpak package for Install lenovo-wwan-dpr on Linux | Snap Store
I am getting below error:
sh: line 1: mmcli: command not found
I am using “mmcli” to get modem type in Application code
ls: cannot access ‘/dev/wwan*’: No such file or directory
Above error is shown but i am able to see /dev/wwan0mbim0 files
yml file loiks like below:
app-id: org.flatpak.Hello
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: DPR_test
finishing-args:
- --share=network
- --filesystem=/dev
- --device=all
modules:
- name: hello
buildsystem: simple
build-commands:
- install -D DPR_test/app/bin/DPR_test
sources:
- type: file
path: DPR_test
We are just packaging a binary using flatpak.
Any comment regarding this will be helpful:
Thank you !!
1 Like
hub
September 21, 2022, 6:00pm
#2
you should not have --filesystem=/dev
as for mmcli
it’s not in the runtime as it doesn’t have ModemManager. You’d need to build in the flatpak.
nitjosh
September 22, 2022, 1:19am
#3
@hub Thank you for your comments.
you should not have --filesystem=/dev
It seems application cannot access /dev/wwan0mbim0 file . Is there something needs to be done in yml file for this ?
You’d need to build in the flatpak.
In this case, i suppose i need to package ModemManager as modules . Is there any other application which uses modemmanager build in flatpak , so that i can re-use it as it will be very helpful.
Thank you
nitjosh
September 22, 2022, 2:03am
#5
I had tried searching in github but cannot see any search result using above link as well, not sure any permission needed to see this. Thanks
razzeee
September 26, 2022, 8:20am
#6
The above link doesn’t work for me, I guess it’s meant to be Sign in to GitHub · GitHub
],
"sources": [
{
"type": "archive",
"url": "https://www.freedesktop.org/software/libmbim/libmbim-1.26.4.tar.xz",
"sha256": "f688cec4c4586a17575f5e327448ce62f2000ef6a07c9e4589873d4a68568ad9"
}
]
},
{
"name": "ModemManager",
"config-opts": [
"--without-udev",
"--with-systemdsystemunitdir=/app/lib/systemd",
"--with-udev-base-dir=/app/lib"
],
"cleanup": [
"/bin/mmcli",
"/etc/dbus-1/system.d",
"/lib/ModemManager",
"/lib/rules.d",
nitjosh
September 26, 2022, 9:09am
#7
@razzeee Thank you very much ! I will try and check it !!
hadess
September 27, 2022, 2:34pm
#8
For what it’s worth, the application you’re looking to package looks like a daemon that runs in the background. It’s unlikely to be accepted in Flathub if it doesn’t have any UI to speak of, contrary to snap and the snap store.
@hadess Thank you for sharing this information. Yes, this application doesn`t have any UI.