LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-23-2021, 03:04 AM   #1
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Rep: Reputation: Disabled
extract settings from flatpak?


Hi,
I wonder if it is possible to see what settings a flatpak installation is using inside the container?

I'm running manjaro and would like to use a program called xmind8.
I can install it from the AUR repository but then it have some issues and work sub-optimal.

When I install the flatpak version of the same program it runs smooth except it is limited when connecting to the environment e.g. for links inside xmind can not be followed to the internet and it will not open files if I click the file but I have to open them from inside the program.

Flatpack installed an environment in the container e.g. the nvidia graphics driver, the same version I'm using in the OS.

I would like to make the AUR version work since I do not know what is wrong but think it might be a settings issue I was wondering what setting is used in the container? E.g. what settings is the nvidia graphics driver using?
Is it possible to see that?

Last edited by Johannes33; 09-23-2021 at 07:42 AM.
 
Old 09-23-2021, 08:33 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,369

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
AppImages & flatpacks usually mount the file so it's seen as a subdirectory, and execute the file that way. You should be able to get in and copy the config to your homedir. Check /etc/mtab or /proc/mounts for the mount dir.
 
Old 09-23-2021, 01:15 PM   #3
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Original Poster
Rep: Reputation: Disabled
I read /proc/mounts and /etc/mtab and have a hard time deciphering where flatpak is hiding.
I run the flatpak program while reading the files.
Here is the printout:

proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
dev /dev devtmpfs rw,nosuid,relatime,size=16399112k,nr_inodes=4099778,mode=755,inode64 0 0
run /run tmpfs rw,nosuid,nodev,relatime,mode=755,inode64 0 0
efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/nvme0n1p2 / btrfs rw,noatime,ssd,space_cache,subvolid=256,subvol=/@ 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=30,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=11794 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /tmp tmpfs rw,nosuid,nodev,size=16408856k,nr_inodes=409600,inode64 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /run/credentials/systemd-sysusers.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0
/dev/nvme0n1p2 /home btrfs rw,noatime,ssd,space_cache,subvolid=257,subvol=/@home 0 0
/dev/nvme0n1p2 /var/log btrfs rw,noatime,ssd,space_cache,subvolid=259,subvol=/@log 0 0
/dev/nvme0n1p2 /var/cache btrfs rw,noatime,ssd,space_cache,subvolid=258,subvol=/@cache 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=3281768k,nr_inodes=820442,mode=700,uid=1000,gid=1000,inode64 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0
/dev/nvme0n1p2 /run/timeshift/backup btrfs rw,relatime,ssd,space_cache,subvolid=5,subvol=/ 0 0

Where do you think the flatpak program resides?
 
Old 09-24-2021, 03:49 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,369

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
That is with the flatpack loaded and running?

I have found AppImages mounted on /tmp/mnt???? but I have hardly any experience with flatpacks.But it stands to reason they are mounted somewhere, somehow, as configs, libs and programs need to be accessed in a form they recognise.
 
Old 09-24-2021, 06:13 AM   #5
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Original Poster
Rep: Reputation: Disabled
Yes that is when xmind is running as a flatpak.
I will investigate further, if you can think of anything, do not hasitate to post again.
 
Old 09-24-2021, 03:28 PM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Really you need to check inside the flatpack environment (some sort of chroot I guess), not your regular filesystem.

Or, maybe the flatpak comes as one big file (IDK, I don't use these things)? Chances are, you can open it with an archive manager and look inside.

Also please tell us why you think you need this. Mayube there's a better way to solve your actual problem.
 
Old 10-04-2021, 01:37 PM   #7
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Original Poster
Rep: Reputation: Disabled
I want to see what settings they use inside the flatpak container to make xmind8 work so well when I can not make it work good with the install from AUR.
If you have a suggestion on how to make xmind8 work well on majaro, installed from AUR I'm all ears.
What I have found out so far is that the AUR version uses 24 (some units) in load of my nvidia card while stuttering and the flatpak version uses 60 and have a fuent motion. So basically the AUR version does not use my graphics card like it should and as a result becomes very sluggish. Also the flatpak version uses GTK2 instead of GTK3 which the AUR version uses. It might be other stuff wrong with the AUR version as well but that is a start.
 
Old 10-04-2021, 01:58 PM   #8
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
The flatpak manpage lists standard locations for flatpaks:
Quote:
Flatpak can operate in system-wide or per-user mode. The system-wide data (runtimes, applications and configuration) is located in $prefix/var/lib/flatpak/, and the per-user data is in $HOME/.local/share/flatpak/. Below these locations, there is a local repository in the repo/ subdirectory and installed runtimes and applications are in the corresponding runtime/ and app/ subdirectories.
 
Old 10-05-2021, 05:40 AM   #9
Johannes33
Member
 
Registered: Jul 2015
Distribution: manjaro Xfce
Posts: 80

Original Poster
Rep: Reputation: Disabled
Thanks for the reply!

Perhaps you also know in what files the settings for the nvidia driver is?
Normally I have found out that they are stored in either of these files
Quote:
.nvidia-settings-rc
nvidia.conf
xorg.conf
.xinitrc
I do not have any of them.

what I have with nvidia, xorg and xinit in the name is:

Quote:
org.freedesktop.Platform.GL.nvidia-470-63-01
org.freedesktop.Platform.GL.nvidia-470-63-01
org.freedesktop.Platform.GL.nvidia-470-63-01
libnvidia-glvkspirv.so.470.63.01
libnvidia-cbl.so.470.63.01
libGLX_nvidia.so.470.63.01
libnvidia-ml.so.470.63.01
libnvidia-ifr.so.470.63.01
libnvidia-compiler.so.470.63.01
libnvidia-encode.so.470.63.01
libnvidia-allocator.so.470.63.01
libnvidia-ptxjitcompiler.so.470.63.01
libEGL_nvidia.so.470.63.01
libnvidia-vulkan-producer.so.470.63.01
libGLESv1_CM_nvidia.so.470.63.01
libnvidia-rtcore.so.470.63.01
libnvidia-fbc.so.470.63.01
libnvidia-cfg.so.470.63.01
libglxserver_nvidia.so.470.63.01
libGLESv2_nvidia.so.470.63.01
nvidia_icd.json
nvidia_layers.json
10_nvidia.json
libnvidia-opticalflow.so.470.63.01
libnvidia-eglcore.so.470.63.01
libvdpau_nvidia.so.470.63.01
libnvidia-glsi.so.470.63.01
libnvidia-ngx.so.470.63.01
libnvidia-tls.so.470.63.01
libnvidia-glcore.so.470.63.01
libnvidia-opencl.so.470.63.01
libEGL_nvidia.so.0
libGLESv2_nvidia.so.2
libGLX_nvidia.so.0
libnvidia-ptxjitcompiler.so.1
libvdpau_nvidia.so
libnvidia-encode.so.1
libnvidia-opencl.so
libnvidia-ml.so.1
libnvidia-ml.so
libnvidia-fbc.so.1
nvidia.icd
nvptx--nvidiacl.bc
nvptx64--nvidiacl.bc
nvidia_drv_video.so
nvptx--nvidiacl.bc
nvptx64--nvidiacl.bc

xorg
xorg.lst
xorg.xml
xorg.py
xorg.cpython-38.pyc
xorg
xorg.lst
xorg.xml
Under /var/lib/flatpak/ and nothing under ~/.local/share/flatpak/

Last edited by Johannes33; 10-05-2021 at 05:44 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Flatpak 1.10.2 Security Update Fixes Vulnerability That Lets Flatpak Apps Access Host OS Files LXer Syndicated Linux News 0 03-11-2021 05:12 PM
LXer: Flatpak Linux App Sandboxing Format Now Lets You Kill Running Flatpak Instances LXer Syndicated Linux News 0 11-23-2018 01:21 AM
LXer: On Snappy and Flatpak: business as usual in the Canonical propaganda department LXer Syndicated Linux News 0 06-19-2016 09:33 AM
LXer: LibreOffice 5.2 Beta Now Available as a Flatpak for Common Linux Distributions LXer Syndicated Linux News 0 06-02-2016 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration