You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
N0rbert
changed the title
ReText has wrong Exec line in /usr/local/share/applications/me.mitya57.ReText.desktop file when installed with pip3
ReText has wrong Exec and Icon lines in /usr/local/share/applications/me.mitya57.ReText.desktop file when installed with pip3
Mar 23, 2019
So it looks like by default pip first builds a wheel and then installs it. When installing into a wheel, our setup.py thinks that the wheel directory is the final destination and writes that path to the .desktop file. There is no way to know what the actual destination will be.
I have just pushed a commit that disables any path substitution at all when building wheels, so the desktop file will have generic Exec=retext %F and Icon=retext lines. This is not ideal, but better than the current situation.
I recommend either using the distro packages, or running pip with --no-cache-dir like my previous comment says.
Steps to reproduce:
pip3
withsudo apt install python3-pip
sudo -H pip3 install retext
Expected results:
Actual results:
pip3 installed ReText with broken paths in
/usr/local/share/applications/me.mitya57.ReText.desktop
file:Screenshot from

mozo
Main Menu editorReText starts normally only from terminal as
is correct.
Temporary workaround:
Change paths in
/usr/local/share/applications/me.mitya57.ReText.desktop
manually toThe text was updated successfully, but these errors were encountered: