tchx84 / Flatseal

Manage Flatpak permissions
GNU General Public License v3.0
1.15k stars 68 forks source link

Flatseal does not run on Ubuntu 22.04 #655

Closed dnet890 closed 7 months ago

dnet890 commented 7 months ago

Hi I tried to run flatseal on Ubuntu 22.04. But, I got this error message flatpak run com.github.tchx84.Flatseal

(process:365422): flatpak-WARNING **: 11:06:36.877: Error writing credentials to socket: Error sending message: Broken pipe

image
tchx84 commented 7 months ago

hey @dtantono , can you build / install master and try?

flatpak kill com.github.tchx84.Flatseal

git clone https://github.com/tchx84/Flatseal.git
cd Flatseal
flatpak --user install org.gnome.{Platform,Sdk}//45
flatpak-builder --user --force-clean --install build com.github.tchx84.Flatseal.json
flatpak --user run --branch=master com.github.tchx84.Flatseal
dnet890 commented 7 months ago

will this package replace the flathub package and stop getting update from flathub?

tchx84 commented 7 months ago

will this package replace the flathub package and stop getting update from flathub?

no, it's a different branch, and you can always uninstall it.

dnet890 commented 7 months ago

Thanks and here is the new error

image
tchx84 commented 7 months ago

Hmm, try with flatpak --user install flathub org.gnome.{Platform,Sdk}//45

dnet890 commented 7 months ago

Hi it shows nothing

image
SolidStateDj commented 7 months ago

I am having this exact same issue on Arch.

Both the AUR and Flatpak package do not run, both either giving no error or the same error as originally reported.

Building manually still results in below or no output.

** (process:43327): WARNING **: 01:58:48.433: Error writing credentials to socket: Error sending message: Broken pipe

Purging cache and reinstalling also does not work, changing sockets does nothing.

The only app that is broken (from my testing) is Flatseal. Discord, Bottles, Prism-Launcher, Flatsweep, Builder, and OBS-Studio all work.

tchx84 commented 7 months ago

hey @dtantono , I tried to reproduce this today but could not.

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

Screenshot from 2024-02-04 23-36-05

Unless I can reproduce it, I honestly can't help much... but I suggest you try resetting everything that has to do with Flatseal in the following way (from the terminal):

# Make sure no instance of Flatseal is running
flatpak  kill com.github.tchx84.Flatseal
pkill -f "com.github.tchx84.Flatseal"

# Reset all user data related to Flatseal
rm -rf ~/.var/app/com.github.tchx84.Flatseal/
rm ~/.local/share/flatpak/overrides/com.github.tchx84.Flatseal
rm ~/.local/share/flatpak/overrides/global

# Build Flatseal from master branch
git clone https://github.com/tchx84/Flatseal.git
cd Flatseal
flatpak --user install org.gnome.{Platform,Sdk}//45
flatpak-builder --user --force-clean --install build com.github.tchx84.Flatseal.json

# Run it
flatpak --user run --branch=master com.github.tchx84.Flatseal

@SolidStateDj maybe you can try this too..

dnet890 commented 7 months ago

I tried that solution provided. the command line does not worked

2024-02-05_13-16_1 2024-02-05_13-16
tchx84 commented 7 months ago

I tried that solution provided. the command line does not worked 2024-02-05_13-16_1 2024-02-05_13-16

Try without the $s

dnet890 commented 7 months ago

I removed the dollar sign and I have same result

2024-02-05_13-26_1 2024-02-05_13-26
tchx84 commented 7 months ago

@SolidStateDj it seems you don't have flathub set up under the user installation, so do this:

flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

And then run all those previous commands.

SolidStateDj commented 7 months ago

@SolidStateDj it seems you don't have flathub set up under the user installation, so do this:

flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

And then run all those previous commands.

I cannot verify whether or not this fixed it, as it appeared to begin working again after installing KDE-plasma6 a few days ago, running the X11 session, and then rebooting. I have since uninstalled plasma, but Flatseal remains working (for now).

Sorry I couldn't be of more help, but thanks for helping me.

tchx84 commented 7 months ago

It's OK! good to hear it's working now.

dnet890 commented 7 months ago

@tchx84 How come it is closed? because that commandline does not worked?

Make sure no instance of Flatseal is running

flatpak kill com.github.tchx84.Flatseal pkill -f "com.github.tchx84.Flatseal"

Reset all user data related to Flatseal

rm -rf ~/.var/app/com.github.tchx84.Flatseal/ rm ~/.local/share/flatpak/overrides/com.github.tchx84.Flatseal rm ~/.local/share/flatpak/overrides/global

Build Flatseal from master branch

git clone https://github.com/tchx84/Flatseal.git cd Flatseal flatpak --user install org.gnome.{Platform,Sdk}//45 flatpak-builder --user --force-clean --install build com.github.tchx84.Flatseal.json

Run it

flatpak --user run --branch=master com.github.tchx84.Flatseal

tchx84 commented 7 months ago

@dtantono considering that tried to mimic your setup and still couldn't reproduce this, unless you can provide a way for me to reproduce this, I can't really help..

tchx84 commented 7 months ago

@dtantono from the screenshots you're showing you need to install Flathub first...

flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
dnet890 commented 7 months ago

So, My steps are:

sudo apt install flatpak-builder flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Make sure no instance of Flatseal is running

flatpak kill com.github.tchx84.Flatseal pkill -f "com.github.tchx84.Flatseal"

Reset all user data related to Flatseal

rm -rf ~/.var/app/com.github.tchx84.Flatseal/ rm ~/.local/share/flatpak/overrides/com.github.tchx84.Flatseal rm ~/.local/share/flatpak/overrides/global

Build Flatseal from master branch

git clone https://github.com/tchx84/Flatseal.git cd Flatseal flatpak --user install org.gnome.{Platform,Sdk}//45 flatpak-builder --user --force-clean --install build com.github.tchx84.Flatseal.json

Run it

flatpak --user run --branch=master com.github.tchx84.Flatseal

That works. But, it is quite annoying if we need to run those set of command for long term to get the flatseal to work. Can you create the FAQ on the readme for troubleshooting purpose? So, the noobs who want to use the app can use it easily.

tchx84 commented 7 months ago

That works. But, it is quite annoying if we need to run those set of command for long term to get the flatseal to work. Can you create the FAQ on the readme for troubleshooting purpose? So, the noobs who want to use the app can use it easily.

To be clear, these steps are quite unique to your scenario. Other users don't need to do these steps.

From this I conclude that the next release does fix some ubuntu-specific cases, so the chances that people would need this sort of nuclear-reset are less likely now.

Glad it help.