mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2655] gajim doesn't let open images #1672
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1672
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexandre1985 on GitHub (Apr 16, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2655
My firejailed gajim has the gajim's plugins: Image and URL Image Preview. I believe it is a problem with the URL Image Preview.
With it, gajim shows a sent image preview in my chat box. With a right click I can download the image, open the image, or get a link url.
When I click to download the image (with gajim inside firejail) everything works OK, the same with the get link url (it gives a link like this aesgcm://server.domain/upload/xxxxxx/hAsHfiLe.jpg#abcd9876).
But when I click to open the image (it chooses my pc image viewer) it does nothing, doesn't work.
Even with this
gajim.localfile in placeI have tried to put everything inside the
gajim.localbut still it doesn't let me open the image.Need help.
With a non-firejailed gajim it works. And when I click to open a image I get this gajim output
@rusty-snake commented on GitHub (Apr 17, 2019):
@alexandre1985 try
echo "private-bin deepin-image-viewer" >> ~/.config/firejail/gajim.local@alexandre1985 commented on GitHub (Apr 17, 2019):
@rusty-snake It didn't work.
When I click to open the image, firejailed Gajim does download the image to
/home/john/.local/share/gajim/downloads/but the image it isn't open indeepin-image-viewer.Don't know if this is related but the image link has the protocol aesgcm://
It works fine without firejail
@rusty-snake commented on GitHub (Apr 17, 2019):
@alexandre1985
firejail --build gajim | grep "private-bin" >> $HOME/.config/firejail/gajim.localand open an image in deepin-image-viewer from gajim.@alexandre1985 commented on GitHub (Apr 18, 2019):
@rusty-snake I have tried, but it didn't work.
My
gajim.local, right now, is:@rusty-snake commented on GitHub (Apr 18, 2019):
gajim.profile.firejail --noprofile gajimwork?and uncomment then line by line and test after each time
@alexandre1985 commented on GitHub (Apr 18, 2019):
firejail --noprofile@alexandre1985 commented on GitHub (Apr 18, 2019):
In
gajim.profileI commented out:and it solved my issue.
What now?
@alexandre1985 commented on GitHub (Apr 18, 2019):
of the line:
I have tried removing each word one by one and it all gave the open image preview error.
When I comment the line all together I can open the image preview (that are in gajim history dialog).
@rusty-snake commented on GitHub (Apr 18, 2019):
@alexandre1985 the other way round, any program is missing, but is confused me that
echo "private-bin deepin-image-viewer" >> ~/.config/firejail/gajim.localandfirejail --build gajim | grep "private-bin" >> $HOME/.config/firejail/gajim.local(open an image in deepin-ima… from gajim) didn't work.@alexandre1985 commented on GitHub (Apr 18, 2019):
@rusty-snake it didn't. I have tried it again now... Doesn't open.
Here is my
$HOME/.config/firejail/gajim.local@rusty-snake commented on GitHub (Apr 19, 2019):
@alexandre1985 I don't have an idea anymore, but can you try if it works with another image viewer (e.g. eog org feh).
@alexandre1985 commented on GitHub (Apr 19, 2019):
In Gajim, in order to open a image, it checks for the default application for that use case.
Don't know if this helps.
But now, I have disabled the "default application" setting and choose a manual application. There was only a field for the default file manager and I choose mine. Now I'm able to open the image in the default file manager, then I open the image in that.
So this is a way around.
@rusty-snake commented on GitHub (Apr 20, 2019):
Alternative you can change the leftclick behavior in the plugin settings.
@alexandre1985 commented on GitHub (Apr 23, 2019):
@rusty-snake changing the left click of the plugin didn't help at all
@rusty-snake commented on GitHub (Apr 23, 2019):
I meant more like making one of those options:
@chiraag-nataraj commented on GitHub (May 21, 2019):
Going to close this as there seems to be a workaround that works. @alexandre1985, please feel to re-open if you have more questions.
@shodanx2 commented on GitHub (Mar 19, 2022):
I seem to have a similar issues.
https links work but aesgcm:// links don't work
I'm not sure why sometimes gajim exchanges https links and sometimes it is naesgcm:// links