[GH-ISSUE #1994] Krita profile broken on archinux #1345

Closed
opened 2026-05-05 07:54:26 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @cyrinux on GitHub (Jun 13, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1994

❯ krita          
Reading profile /etc/firejail/krita.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Parent pid 3933, child pid 3934
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Child process initialized in 232.17 ms
Setting XDG_DATA_DIRS "/usr/bin/../share:/usr/local/share/:/usr/share/"
Override language: ""
OpenGL Info 
  Vendor:  Intel Open Source Technology Center 
  Renderer:  "Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) " 
  Version:  "3.0 Mesa 18.1.1" 
  Shading language:  1.30 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile)) 
  Current format:    QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 
krita has opengl true
Available translations QSet("cs", "eu", "ne", "zh_TW", "ga", "he", "mk", "ca", "bg", "nds", "xh", "eo", "ru", "fa", "vi", "nn", "hr", "fy", "uk", "tg", "hi", "kk", "lv", "pt", "mr", "sk", "uz@cyrillic", "sl", "it", "ms", "is", "gl", "ast", "pa", "es", "mai", "nl", "pl", "en_US", "ca@valencia", "ta", "fr", "lt", "ar", "be", "th", "km", "sq", "de", "el", "oc", "da", "zh_CN", "pt_BR", "ja", "hne", "ia", "af", "ug", "se", "ro", "tr", "nb", "wa", "sv", "br", "fi", "bs", "cy", "uz", "ko", "hu", "en_GB", "et")
Available domain translations QSet("cs", "eu", "ne", "zh_TW", "ga", "he", "mk", "ca", "bg", "nds", "xh", "eo", "ru", "fa", "vi", "nn", "hr", "fy", "uk", "tg", "hi", "kk", "lv", "pt", "mr", "sk", "uz@cyrillic", "sl", "it", "ms", "is", "gl", "ast", "pa", "es", "mai", "nl", "pl", "en_US", "ca@valencia", "ta", "fr", "lt", "ar", "be", "th", "km", "sq", "de", "el", "oc", "da", "zh_CN", "pt_BR", "ja", "hne", "ia", "af", "ug", "se", "ro", "tr", "nb", "wa", "sv", "br", "fi", "bs", "cy", "uz", "ko", "hu", "en_GB", "et")
Qt UI languages ("en-US") "en_US.UTF-8"
Invalid profile :  "/usr/share/color/icc/colord/Crayons.icc" "Crayon Colors"
Invalid profile :  "/usr/share/color/icc/colord/x11-colors.icc" "X11 Colors"
Loading plugin "/usr/lib/kritaplugins/kritalutdocker.so" failed,  "Cannot load library /usr/lib/kritaplugins/kritalutdocker.so: (libOpenColorIO.so.1: cannot open shared object file: No such file or directory)"
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
input profiles were read from ' /usr/share/krita/input '.
Loading Python plugin
Python::setPath. Script paths: ("/home/xxx/.local/share/krita/", "/usr/share/krita/", "/home/xxx/.local/share/krita/pykrita/", "/usr/share/krita/pykrita/", "/usr/share/pykrita/") false
pythonLibsPath (krita-python-libs) "/usr/lib/krita-python-libs"
Found krita-python-libs at "/usr/lib/krita-python-libs"
pythonLibsPath (sip) ""
Setting python paths: "/home/xxx/.local/share/krita/:/usr/share/krita/:/home/xxx/.local/share/krita/pykrita/:/usr/share/krita/pykrita/:/usr/share/pykrita/:/usr/lib/krita-python-libs"
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00006ef1217cac80 (most recent call first):

Parent is shutting down, bye...
Originally created by @cyrinux on GitHub (Jun 13, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/1994 ``` ❯ krita Reading profile /etc/firejail/krita.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Parent pid 3933, child pid 3934 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Child process initialized in 232.17 ms Setting XDG_DATA_DIRS "/usr/bin/../share:/usr/local/share/:/usr/share/" Override language: "" OpenGL Info Vendor: Intel Open Source Technology Center Renderer: "Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) " Version: "3.0 Mesa 18.1.1" Shading language: 1.30 Requested format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile)) Current format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile)) Version: 3.0 Supports deprecated functions true is OpenGL ES: false krita has opengl true Available translations QSet("cs", "eu", "ne", "zh_TW", "ga", "he", "mk", "ca", "bg", "nds", "xh", "eo", "ru", "fa", "vi", "nn", "hr", "fy", "uk", "tg", "hi", "kk", "lv", "pt", "mr", "sk", "uz@cyrillic", "sl", "it", "ms", "is", "gl", "ast", "pa", "es", "mai", "nl", "pl", "en_US", "ca@valencia", "ta", "fr", "lt", "ar", "be", "th", "km", "sq", "de", "el", "oc", "da", "zh_CN", "pt_BR", "ja", "hne", "ia", "af", "ug", "se", "ro", "tr", "nb", "wa", "sv", "br", "fi", "bs", "cy", "uz", "ko", "hu", "en_GB", "et") Available domain translations QSet("cs", "eu", "ne", "zh_TW", "ga", "he", "mk", "ca", "bg", "nds", "xh", "eo", "ru", "fa", "vi", "nn", "hr", "fy", "uk", "tg", "hi", "kk", "lv", "pt", "mr", "sk", "uz@cyrillic", "sl", "it", "ms", "is", "gl", "ast", "pa", "es", "mai", "nl", "pl", "en_US", "ca@valencia", "ta", "fr", "lt", "ar", "be", "th", "km", "sq", "de", "el", "oc", "da", "zh_CN", "pt_BR", "ja", "hne", "ia", "af", "ug", "se", "ro", "tr", "nb", "wa", "sv", "br", "fi", "bs", "cy", "uz", "ko", "hu", "en_GB", "et") Qt UI languages ("en-US") "en_US.UTF-8" Invalid profile : "/usr/share/color/icc/colord/Crayons.icc" "Crayon Colors" Invalid profile : "/usr/share/color/icc/colord/x11-colors.icc" "X11 Colors" Loading plugin "/usr/lib/kritaplugins/kritalutdocker.so" failed, "Cannot load library /usr/lib/kritaplugins/kritalutdocker.so: (libOpenColorIO.so.1: cannot open shared object file: No such file or directory)" QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout input profiles were read from ' /usr/share/krita/input '. Loading Python plugin Python::setPath. Script paths: ("/home/xxx/.local/share/krita/", "/usr/share/krita/", "/home/xxx/.local/share/krita/pykrita/", "/usr/share/krita/pykrita/", "/usr/share/pykrita/") false pythonLibsPath (krita-python-libs) "/usr/lib/krita-python-libs" Found krita-python-libs at "/usr/lib/krita-python-libs" pythonLibsPath (sip) "" Setting python paths: "/home/xxx/.local/share/krita/:/usr/share/krita/:/home/xxx/.local/share/krita/pykrita/:/usr/share/krita/pykrita/:/usr/share/pykrita/:/usr/lib/krita-python-libs" Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' Current thread 0x00006ef1217cac80 (most recent call first): Parent is shutting down, bye... ```
gitea-mirror 2026-05-05 07:54:26 -06:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@Vincent43 commented on GitHub (Jun 13, 2018):

This should be fixed in master by 474aa8248d . You can adjust it locally until new firejail release.

<!-- gh-comment-id:397114692 --> @Vincent43 commented on GitHub (Jun 13, 2018): This should be fixed in master by https://github.com/netblue30/firejail/commit/474aa8248daf04cf180c6363437e9879c698a8ad . You can adjust it locally until new firejail release.
Author
Owner

@cyrinux commented on GitHub (Jun 14, 2018):

Hi @Vincent43 , this not fix the issue

❯ krita          
Reading profile /home/cyril/.config/firejail/krita.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Parent pid 25612, child pid 25613
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Child process initialized in 156.04 ms
Setting XDG_DATA_DIRS "/usr/bin/../share:/usr/local/share/:/usr/share/"
Override language: ""
OpenGL Info 
  Vendor:  Intel Open Source Technology Center 
  Renderer:  "Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) " 
  Version:  "3.0 Mesa 18.1.1" 
  Shading language:  1.30 
  Requested format:  QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile)) 
  Current format:    QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
     Version: 3.0
     Supports deprecated functions true 
     is OpenGL ES: false 
krita has opengl true
Available translations QSet("nn", "mr", "sk", "se", "en_US", "kk", "bs", "pa", "tr", "nds", "fa", "sl", "fi", "it", "ca", "cs", "mk", "ar", "pt", "oc", "ko", "sq", "sv", "et", "en_GB", "af", "pl", "eo", "ro", "wa", "he", "ast", "mai", "uz@cyrillic", "br", "el", "hu", "ca@valencia", "eu", "es", "nb", "th", "xh", "fy", "fr", "da", "ne", "lv", "cy", "nl", "pt_BR", "gl", "ru", "ia", "hi", "km", "ug", "ja", "ga", "hne", "is", "zh_TW", "hr", "lt", "bg", "uz", "uk", "be", "tg", "ms", "vi", "zh_CN", "de", "ta")
Available domain translations QSet("nn", "mr", "sk", "se", "en_US", "kk", "bs", "pa", "tr", "nds", "fa", "sl", "fi", "it", "ca", "cs", "mk", "ar", "pt", "oc", "ko", "sq", "sv", "et", "en_GB", "af", "pl", "eo", "ro", "wa", "he", "ast", "mai", "uz@cyrillic", "br", "el", "hu", "ca@valencia", "eu", "es", "nb", "th", "xh", "fy", "fr", "da", "ne", "lv", "cy", "nl", "pt_BR", "gl", "ru", "ia", "hi", "km", "ug", "ja", "ga", "hne", "is", "zh_TW", "hr", "lt", "bg", "uz", "uk", "be", "tg", "ms", "vi", "zh_CN", "de", "ta")
Qt UI languages ("en-US") "en_US.UTF-8"
Invalid profile :  "/usr/share/color/icc/colord/Crayons.icc" "Crayon Colors"
Invalid profile :  "/usr/share/color/icc/colord/x11-colors.icc" "X11 Colors"
Loading plugin "/usr/lib/kritaplugins/kritalutdocker.so" failed,  "Cannot load library /usr/lib/kritaplugins/kritalutdocker.so: (libOpenColorIO.so.1: cannot open shared object file: No such file or directory)"
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
input profiles were read from ' /usr/share/krita/input '.
Loading Python plugin
Python::setPath. Script paths: ("/home/cyril/.local/share/krita/", "/usr/share/krita/", "/home/cyril/.local/share/krita/pykrita/", "/usr/share/krita/pykrita/", "/usr/share/pykrita/") false
pythonLibsPath (krita-python-libs) "/usr/lib/krita-python-libs"
Found krita-python-libs at "/usr/lib/krita-python-libs"
pythonLibsPath (sip) ""
Setting python paths: "/home/cyril/.local/share/krita/:/usr/share/krita/:/home/cyril/.local/share/krita/pykrita/:/usr/share/krita/pykrita/:/usr/share/pykrita/:/usr/lib/krita-python-libs"
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00006724b5bf7c80 (most recent call first):

Parent is shutting down, bye...
                               

Should include python?

<!-- gh-comment-id:397265227 --> @cyrinux commented on GitHub (Jun 14, 2018): Hi @Vincent43 , this not fix the issue ``` ❯ krita Reading profile /home/cyril/.config/firejail/krita.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Parent pid 25612, child pid 25613 Warning: /sbin directory link was not blacklisted Warning: /usr/sbin directory link was not blacklisted Child process initialized in 156.04 ms Setting XDG_DATA_DIRS "/usr/bin/../share:/usr/local/share/:/usr/share/" Override language: "" OpenGL Info Vendor: Intel Open Source Technology Center Renderer: "Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) " Version: "3.0 Mesa 18.1.1" Shading language: 1.30 Requested format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(CompatibilityProfile)) Current format: QSurfaceFormat(version 3.0, options QFlags<QSurfaceFormat::FormatOption>(DeprecatedFunctions), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 0, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 0, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile QSurfaceFormat::OpenGLContextProfile(NoProfile)) Version: 3.0 Supports deprecated functions true is OpenGL ES: false krita has opengl true Available translations QSet("nn", "mr", "sk", "se", "en_US", "kk", "bs", "pa", "tr", "nds", "fa", "sl", "fi", "it", "ca", "cs", "mk", "ar", "pt", "oc", "ko", "sq", "sv", "et", "en_GB", "af", "pl", "eo", "ro", "wa", "he", "ast", "mai", "uz@cyrillic", "br", "el", "hu", "ca@valencia", "eu", "es", "nb", "th", "xh", "fy", "fr", "da", "ne", "lv", "cy", "nl", "pt_BR", "gl", "ru", "ia", "hi", "km", "ug", "ja", "ga", "hne", "is", "zh_TW", "hr", "lt", "bg", "uz", "uk", "be", "tg", "ms", "vi", "zh_CN", "de", "ta") Available domain translations QSet("nn", "mr", "sk", "se", "en_US", "kk", "bs", "pa", "tr", "nds", "fa", "sl", "fi", "it", "ca", "cs", "mk", "ar", "pt", "oc", "ko", "sq", "sv", "et", "en_GB", "af", "pl", "eo", "ro", "wa", "he", "ast", "mai", "uz@cyrillic", "br", "el", "hu", "ca@valencia", "eu", "es", "nb", "th", "xh", "fy", "fr", "da", "ne", "lv", "cy", "nl", "pt_BR", "gl", "ru", "ia", "hi", "km", "ug", "ja", "ga", "hne", "is", "zh_TW", "hr", "lt", "bg", "uz", "uk", "be", "tg", "ms", "vi", "zh_CN", "de", "ta") Qt UI languages ("en-US") "en_US.UTF-8" Invalid profile : "/usr/share/color/icc/colord/Crayons.icc" "Crayon Colors" Invalid profile : "/usr/share/color/icc/colord/x11-colors.icc" "X11 Colors" Loading plugin "/usr/lib/kritaplugins/kritalutdocker.so" failed, "Cannot load library /usr/lib/kritaplugins/kritalutdocker.so: (libOpenColorIO.so.1: cannot open shared object file: No such file or directory)" QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout input profiles were read from ' /usr/share/krita/input '. Loading Python plugin Python::setPath. Script paths: ("/home/cyril/.local/share/krita/", "/usr/share/krita/", "/home/cyril/.local/share/krita/pykrita/", "/usr/share/krita/pykrita/", "/usr/share/pykrita/") false pythonLibsPath (krita-python-libs) "/usr/lib/krita-python-libs" Found krita-python-libs at "/usr/lib/krita-python-libs" pythonLibsPath (sip) "" Setting python paths: "/home/cyril/.local/share/krita/:/usr/share/krita/:/home/cyril/.local/share/krita/pykrita/:/usr/share/krita/pykrita/:/usr/share/pykrita/:/usr/lib/krita-python-libs" Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal Python error: Py_Initialize: Unable to get the locale encoding ModuleNotFoundError: No module named 'encodings' Current thread 0x00006724b5bf7c80 (most recent call first): Parent is shutting down, bye... ``` Should include python?
Author
Owner

@Vincent43 commented on GitHub (Jun 14, 2018):

It seems firejail still isn't updated to latest stable release in Archlinux.
You can either add below to your /home/cyril/.config/firejail/krita.profile (before include /etc/firejail/disable-common.inc line:

# Allow python (blacklisted by disable-interpreters.inc)
noblacklist ${PATH}/python2*
noblacklist ${PATH}/python3*
noblacklist /usr/lib/python2*
noblacklist /usr/lib/python3*

or delete include /etc/firejail/disable-devel.inc line.

<!-- gh-comment-id:397280305 --> @Vincent43 commented on GitHub (Jun 14, 2018): It seems firejail still isn't updated to latest stable release in Archlinux. You can either add below to your `/home/cyril/.config/firejail/krita.profile` (before `include /etc/firejail/disable-common.inc` line: ``` # Allow python (blacklisted by disable-interpreters.inc) noblacklist ${PATH}/python2* noblacklist ${PATH}/python3* noblacklist /usr/lib/python2* noblacklist /usr/lib/python3* ``` or delete `include /etc/firejail/disable-devel.inc` line.
Author
Owner

@cyrinux commented on GitHub (Jun 15, 2018):

Yes better like this thanks :) Will retry with noexec

<!-- gh-comment-id:397528994 --> @cyrinux commented on GitHub (Jun 15, 2018): Yes better like this thanks :) Will retry with noexec
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#1345
No description provided.