Some rofi git repo fixes

This commit is contained in:
Sage Vaillancourt 2023-03-03 09:38:23 -05:00
parent 911303cb34
commit ba1c32b383
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
@ -29,7 +29,7 @@ def get_project_type(project) -> str:
return "webstorm"
if file.endswith("cargo.toml") or file.endswith(".c"):
return "clion"
if file.endswith(".csproj"):
if file.endswith(".csproj") or file.endswith("DotSettings"):
return "rider"
if file.endswith(".py"):
return "pycharm"
@ -51,7 +51,7 @@ def open_project(project: str) -> ():
if project_type is None:
return
command = get_application_desktop_file_info(project_type, 'Exec')[6:-5]
subprocess.Popen([command, project], shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
subprocess.Popen([command + " " + project], shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
def print_project_message(project: str) -> ():