fixed opening folder

This commit is contained in:
Saifeddine ALOUI 2024-03-01 10:57:47 +01:00
parent fd17a0c731
commit 697b7ed92a
5 changed files with 7 additions and 7 deletions

View File

@ -287,7 +287,7 @@ async def open_code_folder(request: FolderRequest):
root_folder = client.discussion.discussion_folder
root_folder.mkdir(parents=True, exist_ok=True)
if platform.system() == 'Windows':
subprocess.run(['start', '"'+str(root_folder)+'"'], check=True)
subprocess.Popen(f'explorer "{root_folder}"')
elif platform.system() == 'Linux':
subprocess.run(['xdg-open', str(root_folder)], check=True)
elif platform.system() == 'Darwin':

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
web/dist/index.html vendored
View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LoLLMS WebUI - Welcome</title>
<script type="module" crossorigin src="/assets/index-83abefff.js"></script>
<link rel="stylesheet" href="/assets/index-b62d2460.css">
<script type="module" crossorigin src="/assets/index-3d7373fe.js"></script>
<link rel="stylesheet" href="/assets/index-b65bcbd1.css">
</head>
<body>
<div id="app"></div>

View File

@ -2,7 +2,7 @@
<form>
<div class="absolute bottom-0 left-0 w-fit min-w-96 w-full justify-center text-center p-4">
<div v-if="filesList.length > 0 || showPersonalities" class="items-center gap-2 rounded-lg border bg-primary dark:bg-bg-dark-tone p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900 w-fit">
<div v-if="filesList.length > 0 || showPersonalities" class="items-center gap-2 rounded-lg border bg-light-tone dark:bg-bg-dark-tone p-1.5 shadow-sm hover:shadow-none dark:border-gray-800 dark:bg-gray-900 w-fit">
<!-- EXPAND / COLLAPSE BUTTON -->
<div class="flex">
<button