From ba1c32b383d5c0e79ea7cd5f903a53d1a883ae44 Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Fri, 3 Mar 2023 09:38:23 -0500 Subject: [PATCH] Some rofi git repo fixes --- fake_home/.rofi-list-git-repos.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fake_home/.rofi-list-git-repos.py b/fake_home/.rofi-list-git-repos.py index ec345a1..4a3df10 100755 --- a/fake_home/.rofi-list-git-repos.py +++ b/fake_home/.rofi-list-git-repos.py @@ -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) -> ():