Skip to content
Snippets Groups Projects
Commit e9b5dc37 authored by Abdallah Toumji's avatar Abdallah Toumji
Browse files

Resolved a problem for linux users

parent a547346e
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@ import json
import os
import shutil
import tkinter as tk
import platform
from pathlib import Path
from tkinter import ttk, messagebox
......@@ -554,8 +555,12 @@ class Application(tk.Frame):
command=self.actual_project_state)
self.show_project_button.pack()
if platform.system() == 'Windows':
open_project_button = tk.Button(self.integrate_sidecar_frame, text='Open project',
command=lambda: os.startfile(self.project_directory))
else:
open_project_button = tk.Button(self.integrate_sidecar_frame, text='Open project',
command=lambda: os.system('xdg-open ' + self.project_directory))
open_project_button.pack()
self.previous_directory = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment