Some rofi git repo fixes
This commit is contained in:
parent
911303cb34
commit
ba1c32b383
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python3
|
||||||
# This is a sample Python script.
|
# This is a sample Python script.
|
||||||
|
|
||||||
# Press Shift+F10 to execute it or replace it with your code.
|
# Press Shift+F10 to execute it or replace it with your code.
|
||||||
|
@ -29,7 +29,7 @@ def get_project_type(project) -> str:
|
||||||
return "webstorm"
|
return "webstorm"
|
||||||
if file.endswith("cargo.toml") or file.endswith(".c"):
|
if file.endswith("cargo.toml") or file.endswith(".c"):
|
||||||
return "clion"
|
return "clion"
|
||||||
if file.endswith(".csproj"):
|
if file.endswith(".csproj") or file.endswith("DotSettings"):
|
||||||
return "rider"
|
return "rider"
|
||||||
if file.endswith(".py"):
|
if file.endswith(".py"):
|
||||||
return "pycharm"
|
return "pycharm"
|
||||||
|
@ -51,7 +51,7 @@ def open_project(project: str) -> ():
|
||||||
if project_type is None:
|
if project_type is None:
|
||||||
return
|
return
|
||||||
command = get_application_desktop_file_info(project_type, 'Exec')[6:-5]
|
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) -> ():
|
def print_project_message(project: str) -> ():
|
||||||
|
|
Loading…
Reference in New Issue