View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3624
|
Posted: Sun Jan 01, 2023 11:01 pm Post subject: Forcing specific python ver as 1st choice 4 an app[solved] |
|
|
Here an desktop app thar launches Code: | cat /usr/bin/pgAdmin4
#/bin/bash
cd /usr/share/pgadmin4/runtime
node_modules/nw/nwjs/nw . | This app can only be build against python3_9.
And the above desktop file snippet only only works when python3_9 is selected as default.
I'd rather not have python3_9 to be selected as first choice here.
Any idea how to patch to wipe this constraint away?
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Mon Jan 02, 2023 2:10 am; edited 2 times in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21624
|
Posted: Sun Jan 01, 2023 11:21 pm Post subject: |
|
|
Set PYTHON_SINGLE_TARGET=python3_9 for this ebuild. That should cause the ebuild to set this up properly.
If you need to override it at run time for a single user, the README for python-exec suggests that setting EPYTHON can control what version is run. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3624
|
Posted: Mon Jan 02, 2023 1:02 am Post subject: |
|
|
Nice, Code: | diff /usr/share/applications/pgadmin4.desktop /usr/local/share/applications/pgadmin4.desktop
4c4
< Exec=/usr/bin/pgAdmin4
---
> Exec=env EPYTHON=python3.9 /usr/bin/pgAdmin4 | did the trick, indeed.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here.
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
|