Linux kodi cant find installed packages when executing commands from commandline
#1
Code:
Hello together,

i have installed kodi on my steamdeck and it works realy well. i installed the vpn manager addon: https://github.com/Zomboided/service.vpn...stallation

For that addon to work it needs openpvn installed and running (see installation instructions) wich i have - verified it by entering "openvpn" in my cmd and it gave me an output how to use the program

If i try to use the addon it says that it cant find / run openvpn. Since i am a developer myself (but not for linux or python) i looked into the code and found the corresponding code. The code in question is:

https://github.com/Zomboided/service.vpn...latform.py

Code:

command = openvpn+ " > " + getVPNLogFilePath() + " 2>&1 &"
os.system(command)
(i modified it slightly so it is not as complex to understand, because it does not matter for my problem)

so it basicly tryed to execute openvpn in a new command window - wich fails.

i modified the code to test wich user a new command windows uses: its deck, the default user for the steam deck and the same user i used to verify that openvpn works.
after that i tryed to use the full path to open vpn: /usr/bin/openvpn wich got me a file/folder not found
then i tryed to use echo <mypassword> | sudo openvpn wich gave me a "sudo command not found"

so it seems that the os.system command cant find any installed packages (i also tryed subsystem and got the same result)

only a simple ls -l gave me an expected result

i also tryed to run kodi with sudo wich also didnt change the result

i dont think its an addon problem, because any similiar working addon should have the same problem. i think its more a python / linux problem.

not sure where to go from here. anyone else with suggestions?
Reply
#2
@Hulk

Sorry, but we don't provide support for VPN setups.
That is a 3rd party modification that becomes a nightmare to deal with.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#3
i dont need support for that specific addon - i need support with linux/kodi running commands in a commandline. or isnt that an undesired coding practice for kodi?
Reply
#4
sadly i cant edit my posts - i would edit the topic title to a more describing one - "kodi cant find installed packages when executing commands from commandline" - maybe a mod can change that for me? @Karellen
Reply
#5
(2024-11-04, 02:37)Hulk Wrote: maybe a mod can change that for me?
Done
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#6
(2024-11-04, 02:24)Hulk Wrote: not sure where to go from here. anyone else with suggestions?

if kodi is trying to run commands and returning command not found
and it has been verified that the command does indeed exist and is at the path it should be

then it would only be logical that the user kodi is running as does not have permission to that command or location

i think you need to seek out a steamdeck forum as i'm not sure the help you need exists here

instead of finding a kodi user that uses steamdeck, find a steamdeck user that uses kodi basically
Reply

Logout Mark Read Team Forum Stats Members Help
kodi cant find installed packages when executing commands from commandline0