[GH-ISSUE #3104] firejail gedit doesn´t work anymore #1946

Closed
opened 2026-05-05 08:36:43 -06:00 by gitea-mirror · 10 comments
Owner

Originally created by @Rosika2 on GitHub (Jan 1, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3104

Hi altogether and a Happy New Year,

today I got a firejail-update to version 0.9.62.

And suddenly gedit doesn´t work anymore:

rosika@rosika-Lenovo-H520e ~> firejail gedit
Reading profile /etc/firejail/gedit.profile
Reading profile /etc/firejail/allow-common-devel.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-exec.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 4239, child pid 4240
Standard C library installed in 5964884344832.00 ms
Program libraries installed in 137.96 ms
GdkPixbuf installed in 83.61 ms
GTK3 installed in 50.74 ms
Pango installed in 0.01 ms
GIO installed in 6.20 ms
Enchant (speller) installed in 5.99 ms
Installed 131 libraries and 10 directories
Blacklist violations are logged to syslog
Child process initialized in 414.70 ms
gedit: error while loading shared libraries: libgtksourceview-3.0.so.1: cannot open shared object file: No such file or directory

Parent is shutting down, bye...


As a workaround I copied the default.profile to ~/.config/firejail and renamed it gedit.profile so that this profile is used.
That way gedit works again.

Yet it would be nice if the gedit.profile could be fixed somehow.

Greetings.
Rosika

P.S.:
my system: Lubuntu 18.04.3 LTS, 64 bit

Originally created by @Rosika2 on GitHub (Jan 1, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3104 Hi altogether and a Happy New Year, today I got a firejail-update to version 0.9.62. And suddenly **gedit** doesn´t work anymore: ``` rosika@rosika-Lenovo-H520e ~> firejail gedit Reading profile /etc/firejail/gedit.profile Reading profile /etc/firejail/allow-common-devel.inc Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-exec.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 4239, child pid 4240 Standard C library installed in 5964884344832.00 ms Program libraries installed in 137.96 ms GdkPixbuf installed in 83.61 ms GTK3 installed in 50.74 ms Pango installed in 0.01 ms GIO installed in 6.20 ms Enchant (speller) installed in 5.99 ms Installed 131 libraries and 10 directories Blacklist violations are logged to syslog Child process initialized in 414.70 ms gedit: error while loading shared libraries: libgtksourceview-3.0.so.1: cannot open shared object file: No such file or directory Parent is shutting down, bye... ``` As a workaround I copied the **default.profile** to **~/.config/firejail** and renamed it **gedit.profile** so that this profile is used. That way gedit works again. Yet it would be nice if the gedit.profile could be fixed somehow. Greetings. Rosika P.S.: my system: Lubuntu 18.04.3 LTS, 64 bit
Author
Owner

@rusty-snake commented on GitHub (Jan 1, 2020):

Can you try adding libgtksourceview-3.0.so.* to the private-lib line.

<!-- gh-comment-id:570066379 --> @rusty-snake commented on GitHub (Jan 1, 2020): Can you try adding `libgtksourceview-3.0.so.*` to the `private-lib` line.
Author
Owner

@Rosika2 commented on GitHub (Jan 1, 2020):

@rusty-snake:
Hi and thank you.
I did what you suggested and now I get a new error:

[...]
gedit: error while loading shared libraries: libpeas-gtk-1.0.so.0: cannot open shared object file: No such file or directory

Should I do the same with this one?

<!-- gh-comment-id:570067556 --> @Rosika2 commented on GitHub (Jan 1, 2020): @rusty-snake: Hi and thank you. I did what you suggested and now I get a new error: ``` [...] gedit: error while loading shared libraries: libpeas-gtk-1.0.so.0: cannot open shared object file: No such file or directory ``` Should I do the same with this one?
Author
Owner

@Fred-Barclay commented on GitHub (Jan 1, 2020):

Hi @Rosika2
Yes, please add that to private-lib as well.

<!-- gh-comment-id:570069900 --> @Fred-Barclay commented on GitHub (Jan 1, 2020): Hi @Rosika2 Yes, please add that to private-lib as well.
Author
Owner

@Rosika2 commented on GitHub (Jan 1, 2020):

@rusty-snake :
@Fred-Barclay :

Hooray it works. Thanks a lot for your help especially on a holiday.

The last line in the gedit.profile now looks like this:
private-lib aspell,gconv,gedit,libgspell-1.so.*,libreadline.so.*,libtinfo.so.*,libgtksourceview-3.0.so.*,libpeas-gtk-1.0.so.*
which turns out to be the correct setting, at least in my system.

Many greetings.
Rosika

<!-- gh-comment-id:570070245 --> @Rosika2 commented on GitHub (Jan 1, 2020): @rusty-snake : @Fred-Barclay : Hooray it works. Thanks a lot for your help especially on a holiday. The last line in the gedit.profile now looks like this: `private-lib aspell,gconv,gedit,libgspell-1.so.*,libreadline.so.*,libtinfo.so.*,libgtksourceview-3.0.so.*,libpeas-gtk-1.0.so.*` which turns out to be the correct setting, at least in my system. Many greetings. Rosika
Author
Owner

@rusty-snake commented on GitHub (Jan 1, 2020):

@glitsj16 If I do ls -l /usr/lib64/libgtksourceview* I get

/usr/lib64/libgtksourceview-2.0.so.0 -> libgtksourceview-2.0.so.0.0.0
/usr/lib64/libgtksourceview-2.0.so.0.0.0
/usr/lib64/libgtksourceview-3.0.so.1 -> libgtksourceview-3.0.so.1.8.0
/usr/lib64/libgtksourceview-3.0.so.1.8.0
/usr/lib64/libgtksourceview-4.so.0 -> libgtksourceview-4.so.0.0.0
/usr/lib64/libgtksourceview-4.so.0.0.0

should we already add libgtksourceview-4 to be future-proof?

<!-- gh-comment-id:570074654 --> @rusty-snake commented on GitHub (Jan 1, 2020): @glitsj16 If I do `ls -l /usr/lib64/libgtksourceview*` I get ``` /usr/lib64/libgtksourceview-2.0.so.0 -> libgtksourceview-2.0.so.0.0.0 /usr/lib64/libgtksourceview-2.0.so.0.0.0 /usr/lib64/libgtksourceview-3.0.so.1 -> libgtksourceview-3.0.so.1.8.0 /usr/lib64/libgtksourceview-3.0.so.1.8.0 /usr/lib64/libgtksourceview-4.so.0 -> libgtksourceview-4.so.0.0.0 /usr/lib64/libgtksourceview-4.so.0.0.0 ``` should we already add `libgtksourceview-4` to be future-proof?
Author
Owner

@ghost commented on GitHub (Jan 1, 2020):

should we already add libgtksourceview-4 to be future-proof?

@rusty-snake I guess for future-proofing we just might get away with adding libgtksourceview-*. Let's ask @Rosika2 if that is a workable solution too.

<!-- gh-comment-id:570076960 --> @ghost commented on GitHub (Jan 1, 2020): > should we already add libgtksourceview-4 to be future-proof? @rusty-snake I guess for future-proofing we just might get away with adding `libgtksourceview-*`. Let's ask @Rosika2 if that is a workable solution too.
Author
Owner

@Rosika2 commented on GitHub (Jan 2, 2020):

@glitsj16:
I´ve just tried it out.
When adding only libgtksourceview-* to the private-lib-line it still doesn´t work.:

[...] private-lib aspell,gconv,gedit,libgspell-1.so.*,libreadline.so.*,libtinfo.so.*,libgtksourceview-*
yields

[...]
gedit: error while loading shared libraries: libpeas-gtk-1.0.so.0: cannot open shared object file: No such file or directory
<!-- gh-comment-id:570202373 --> @Rosika2 commented on GitHub (Jan 2, 2020): @glitsj16: I´ve just tried it out. When adding **only** `libgtksourceview-*` to the _private-lib_-line it still doesn´t work.: `[...] private-lib aspell,gconv,gedit,libgspell-1.so.*,libreadline.so.*,libtinfo.so.*,libgtksourceview-*` yields ``` [...] gedit: error while loading shared libraries: libpeas-gtk-1.0.so.0: cannot open shared object file: No such file or directory ```
Author
Owner

@rusty-snake commented on GitHub (Jan 2, 2020):

@Rosika2 I was not about dropping libpeas-gtk-1.0.so.*, the idea was to include also the upcoming version 4 of libgtksourceview.

private-lib aspell,gconv,gedit,libgspell-1.so.*,libgtksourceview-*,libpeas-gtk-1.0.so.*,libreadline.so.*,libtinfo.so.*
<!-- gh-comment-id:570207187 --> @rusty-snake commented on GitHub (Jan 2, 2020): @Rosika2 I was not about dropping `libpeas-gtk-1.0.so.*`, the idea was to include also the upcoming version 4 of libgtksourceview. ``` private-lib aspell,gconv,gedit,libgspell-1.so.*,libgtksourceview-*,libpeas-gtk-1.0.so.*,libreadline.so.*,libtinfo.so.* ```
Author
Owner

@Rosika2 commented on GitHub (Jan 2, 2020):

@rusty-snake:
Hi, sorry, I misunderstood.
I now replaced the private-lib line with the entries you provided.
I can confirm that it works just fine. So adding libgtksourceview-*, as glitsj16 suggested, seems
to work flawlessly.

Thanks for all the help of yours.
Greetings.
Rosika

<!-- gh-comment-id:570211148 --> @Rosika2 commented on GitHub (Jan 2, 2020): @rusty-snake: Hi, sorry, I misunderstood. I now replaced the _private-lib_ line with the entries you provided. I can confirm that it works just fine. So adding` libgtksourceview-*`, as glitsj16 suggested, seems to work flawlessly. Thanks for all the help of yours. Greetings. Rosika
Author
Owner

@ghost commented on GitHub (Jan 2, 2020):

@Rosika2 @rusty-snake Thanks for confirming libgtksourceview-* works. Fixed.

<!-- gh-comment-id:570235620 --> @ghost commented on GitHub (Jan 2, 2020): @Rosika2 @rusty-snake Thanks for confirming libgtksourceview-* works. Fixed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1946
No description provided.