-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels