Bug 10807 - mypaint fails to start if /bin is in the path
Summary: mypaint fails to start if /bin is in the path
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Damien Lallement
QA Contact:
URL:
Whiteboard: MGA3TOO
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2013-07-20 21:36 CEST by Dave Hodgins
Modified: 2014-12-18 17:31 CET (History)
2 users (show)

See Also:
Source RPM: mypaint-1.0.0-3.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Dave Hodgins 2013-07-20 21:36:00 CEST
If /bin is in the path, prior to /usr/bin, which is true after an install
from the dual-cd, selecting default package selection, then mypaint
fails to start.

The script /usr/bin/mypaint uses /bin/mypaint as the starting point,
and then looks for /lib64/mypaint/ and /share/mypaint/

Possible methods of fixing the problem ...
- Ensure /bin is never in the path
- ln -s /usr/share /share
- Change the script to run the equivalent of readlink -f /bin/mypaint,
after it finds itself, so that it will work whether /bin exists, or is
a symlink to /usr/bin.
Manuel Hiebel 2013-07-22 20:31:42 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => mageia

Comment 1 Alex Loginov 2014-11-16 18:58:31 CET
For LXDE, MATE (mypaint-1.1.0-5.mga5):
[user@localhost ~]$ mypaint

We are not correctly installed or compiled!
script: "/bin/mypaint"
deduced prefix: "/"
lib_shared: "/share/mypaint/"
lib_compiled: "/lib/mypaint/"

Traceback (most recent call last):
  File "/bin/mypaint", line 170, in <module>
    datapath, extradata, confpath, localepath, localepath_brushlib = get_paths()
  File "/bin/mypaint", line 111, in get_paths
    from lib import mypaintlib
ImportError: No module named lib

Workaround:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin

With workaround in LXDE:
Traceback (most recent call last):
  File "/usr/share/mypaint/gui/toolbar.py", line 755, in on_size_allocate
    self._update()
  File "/usr/share/mypaint/gui/toolbar.py", line 776, in _update
    scaled_pixbuf = self._get_scaled_pixbuf(s)
  File "/usr/share/mypaint/gui/toolbar.py", line 760, in _get_scaled_pixbuf
    return theme.load_icon(gtk.STOCK_MISSING_IMAGE, size, 0)
glib.GError: Icon 'gtk-missing-image' not present in theme

mypaint works in KDE.

CC: (none) => loginov_alex
Version: 3 => Cauldron
Whiteboard: (none) => MGA3TOO

Comment 2 Jani Välimaa 2014-11-17 17:34:17 CET
Fixed usage of deprecated STOCK_MISSING_IMAGE and startup issue after usrmove in mypaint-1.1.0-6.mga5.

CC: (none) => jani.valimaa

Comment 3 Alex Loginov 2014-11-17 22:28:08 CET
Works for me. Many thanks.
Comment 4 Alex Loginov 2014-12-18 17:31:53 CET
Mga3 is EOL, but fixed in Cauldron.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.