From 35456f2bca22b576c0dc7a627bbf20bee28338ed Mon Sep 17 00:00:00 2001
From: itdominator <1itdominator@gmail.com>
Date: Fri, 26 Jul 2024 19:52:00 -0500
Subject: [PATCH] pyright changes, start.sh changes, misc.
---
README.md | 4 ++--
pyrightconfig.json | 4 +++-
src/solarfm/core/window.py | 3 +--
user_config/bin/solarfm | 6 +++---
4 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 1931e247..7a316dd8 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ Additionally, if not building a .deb then just move the contents of user_config
Copy the share/solarfm folder to your user .config/ directory too.
`pyrightconfig.json`
-
The pyrightconfig file needs to stay on same level as the .git folders in order to have settings detected when using pyright with lsp functionality.
+The pyrightconfig file needs to stay on same level as the .git folders in order to have settings detected when using pyright with lsp functionality. "pyrightconfig.json" can prompt IDEs such as Zed on settings to use and where imports are located- look at venvPath and venv. "venvPath" is parent path of "venv" where "venv" is just the name of the folder under the parent path that is the python created venv.
Install Setup
```
@@ -32,4 +32,4 @@ A selected file in the active quad-pane will move to trash since it is the defau



-
\ No newline at end of file
+
diff --git a/pyrightconfig.json b/pyrightconfig.json
index 6c993a3f..4d8b8ec5 100644
--- a/pyrightconfig.json
+++ b/pyrightconfig.json
@@ -7,5 +7,7 @@
{
"root": "./src/versions/solarfm-0.0.1/solarfm"
}
- ]
+ ],
+ "venvPath": ".",
+ "venv": ".venv"
}
diff --git a/src/solarfm/core/window.py b/src/solarfm/core/window.py
index d9b8807b..6d3f3f52 100644
--- a/src/solarfm/core/window.py
+++ b/src/solarfm/core/window.py
@@ -1,5 +1,4 @@
# Python imports
-import time
import signal
# Lib imports
@@ -123,4 +122,4 @@ class Window(Gtk.ApplicationWindow):
Gtk.main_quit()
def main(self):
- Gtk.main()
\ No newline at end of file
+ Gtk.main()
diff --git a/user_config/bin/solarfm b/user_config/bin/solarfm
index cb94caf7..60cf37ed 100755
--- a/user_config/bin/solarfm
+++ b/user_config/bin/solarfm
@@ -20,9 +20,9 @@ function main() {
files[$size]="${target}"
done
- G_SLICE=always-malloc
- G_DEBUG=gc-friendly
- GOBJECT_DEBUG=instance-count
+ export G_SLICE=always-malloc
+ export G_DEBUG=gc-friendly
+ export GOBJECT_DEBUG=instance-count
python /opt/solarfm.zip "${files[@]}"
}
main "$@";