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
Right now, when running toolbox-export program inside a named toolbox, the generated .desktop entries do not work. The user needs to specify the container name using the -c argument.
I suggest toolbox-export does use the container name by default (since it runs only inside the toolbox).
Here is a python function to extract and return the container name:
import re
def get_toolbox_name():
with open ('/run/.containerenv', 'rt') as containerenv:
containerenv_data = containerenv.read().splitlines()
toolbox_name_line = containerenv_data[1]
toolbox_name = re.findall(r'"([^"]*)"', toolbox_name_line)[0]
return toolbox_name
if __name__ == "__main__":
toolbox_name = get_toolbox_name()
print(toolbox_name)
The text was updated successfully, but these errors were encountered:
Right now, when running
toolbox-export program
inside a named toolbox, the generated.desktop
entries do not work. The user needs to specify the container name using the-c
argument.I suggest toolbox-export does use the container name by default (since it runs only inside the toolbox).
Here is a python function to extract and return the container name:
The text was updated successfully, but these errors were encountered: