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

Calculator doesn't open #11777

Closed
danielgiljara opened this issue Jul 23, 2023 · 17 comments
Closed

Calculator doesn't open #11777

danielgiljara opened this issue Jul 23, 2023 · 17 comments

Comments

@danielgiljara
Copy link

Distribution

Mint 21.1

Package version

Cinnamon 5.6.8

Graphics hardware in use

No response

Frequency

Always

Bug description

Calculator opens. But remains in taskbar and it is not shown.

Steps to reproduce

Click on Linux Mint menu.
Type "calculator" on search box.
Click on Calculator.

Expected behavior

Calculator should be shown.

Additional information

Calculator is not shown.

@claudiux
Copy link
Member

All works well here. Can't reproduce this issue.

@danielgiljara
Copy link
Author

How can I reproduce it in other machine? What can I do? Reinstall Linux Mint? Any logs can I see?

@fredcw
Copy link
Contributor

fredcw commented Jul 24, 2023

But remains in taskbar and it is not shown.

What happens when you click on the icon in the taskbar?

Also, what happens if you type

gnome-calculator

into a terminal?

@danielgiljara
Copy link
Author

What happens when you click on the icon in the taskbar?

It doesn't open.

Also, what happens if you type

gnome-calculator

into a terminal?

Shows the following message:

(gnome-calculator:7): dbind-WARNING **: 10:29:58.888: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_0: No such file or directory

@claudiux
Copy link
Member

Do you have any broken packages? Please use synaptic-pkexec and look at Status.

@danielgiljara
Copy link
Author

0 broken packages.

@claudiux
Copy link
Member

claudiux commented Jul 26, 2023

Please give the result of the command:
ls -l /run/user/1000/at-spi/

On my computer:

total 0
srwxrwxrwx 1 <user> <group> 0 juil. 26 13:44 bus_0

EDIT: Also give the result of the commands:
sudo systemctl status dbus.service
sudo systemctl status dbus.socket
(Press Q to quit each of these commands.)

@danielgiljara
Copy link
Author

danielgiljara commented Jul 27, 2023

I will reinstall Linux Mint. By some reason that folder is not working on my system. Both services are working.

@danielgiljara
Copy link
Author

Well, I don't know if want to continue with this issue.

The result of first command is:

daniel@daniel-IdeaPad-3-15ITL6:~$ ls -l /run/user/1000/at-spi/ total 0 srwxrwxrwx 1 daniel daniel 0 jul 26 18:27 bus_0

The result of systemctl on both services is "Active: active (running)".

@danielgiljara danielgiljara reopened this Jul 27, 2023
@claudiux
Copy link
Member

Yes, try to reinstall LM. I'm sorry I can't help you more.

@danielgiljara
Copy link
Author

Ok! I will reinstall LM. Non deterministic behaviors!

@kzsa
Copy link

kzsa commented Aug 19, 2023

Hi,
I experienced the same error on my freshly installed system, then after a long trial I became suspicious that the problem occurred after installing firejail. Of course I ran a few rounds of unnecessary reinstallations before... :)

~$ gnome-calculator 

(gnome-calculator:9): dbind-WARNING **: 10:57:49.423: Couldn't connect to accessibility bus: Failed to connect to socket /run/user/1000/at-spi/bus_0: No such file or directory
~$ firejail --top

PID     User      RES(KiB) SHR(KiB) CPU%  Prcs Uptime    Command
5998    <USR>     61148    48640    99.7  5    00:00:25  firejail /usr/bin/gnome-calculator
~$ which gnome-calculator 
/usr/local/bin/gnome-calculator

~$ firejail --debug /usr/local/bin/gnome-calculator 
Building quoted command line: '/usr/local/bin/gnome-calculator' 
Warning: an existing sandbox was detected. /usr/local/bin/gnome-calculator will run without any additional sandboxing features
Starting application
LD_PRELOAD=(null)
execvp argument 0: /usr/local/bin/gnome-calculator
Warning: an existing sandbox was detected. /usr/bin/gnome-calculator will run without any additional sandboxing features

(gnome-calculator:35): Handy-CRITICAL **: 10:55:59.890: Couldn't read the color-scheme setting: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/5296/root

(gnome-calculator:35): Handy-CRITICAL **: 10:55:59.892: Couldn't read the color-scheme setting: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/5296/root

(gnome-calculator:35): Handy-CRITICAL **: 10:55:59.894: Couldn't read the high-contrast setting: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: Portal operation not allowed: Unable to open /proc/5296/root

I ran it using --debug and lo and behold:

image

Finally, after identifying the cause of the error, I ended up here:
netblue30/firejail#4173

I hope this helps others too!
Br: Zsolt

@danielgiljara
Copy link
Author

danielgiljara commented Aug 19, 2023

Yes. I experienced the error dissapears when desinstalled firejail. Thanks for open the issue.

@kzsa
Copy link

kzsa commented Aug 19, 2023

You can still use firejail, you just need to create a local profile for the calculator here:

EDITED:

The description below is incorrect, so I have crossed it out.
Thanks to rusty-snake for correcting me.
Please read rusty-snake's instructions!

/home/\\/.config/firejail/gnome-calculator.profile

and the gnome-calculator.profile should contain this:

private-bin gnome-calculator,sh
ignore include disable-shell.inc
include /etc/firejail/gnome-calculator.profile

For example:

mkdir -p ~/.config/firejail && echo "private-bin gnome-calculator,sh
ignore include disable-shell.inc
include /etc/firejail/gnome-calculator.profile" > ~/.config/firejail/gnome-calculator.profile

Br: Zsolt

A small addition:
This warning is not an error:
"Warning: cannot create /usr/local/bin/gnome-calculator - already exists! Skipping..."

This is because of what is written at the beginning of each profile file.

~$ cat /etc/firejail/gnome-calculator.profile
" # This file is overwritten after every install/update"

~/.config/firejail/gnome-calculator.profile overwrites the configuration file in your home directory with the ominous two lines, then appends the original configuration (from /etc/firejail/ ). So, you just added some extra lines to the original file.

@rusty-snake
Copy link

you just need to create a local profile for the calculator here:
/home//.config/firejail/gnome-calculator.profile

That's not the way you create a local override profile. It should be gnome-calculator.local. That way you can omit the installation dependet include /etc/firejail/gnome-calculator.profile.

@kzsa
Copy link

kzsa commented Aug 23, 2023

you just need to create a local profile for the calculator here:
/home//.config/firejail/gnome-calculator.profile

That's not the way you create a local override profile. It should be gnome-calculator.local. That way you can omit the installation dependet include /etc/firejail/gnome-calculator.profile.

Hi rusty-snake,
Thank you for correcting me and for your work in firejail! I have crossed out the part that was wrong.
Br: Zsolt

Should I stop using this then:

image

Apart from the possibility to omit the import, is there a difference between ".local" and "customized profile"?

@rusty-snake
Copy link

Yes. Better use https://github.com/netblue30/firejail/wiki/Creating-overrides and https://github.com/netblue30/firejail/wiki/Creating-Profiles.

Apart from the possibility to omit the import, is there a difference between ".local" and "customized profile"?

Not really, mostly convenience.

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

5 participants