Updated yt_dlp version; added extremly basic dumb cache setup in thumbnailer; moved build and script as well as deb folder to build
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# . CONFIG.sh
|
||||
|
||||
# set -o xtrace ## To debug scripts
|
||||
# set -o errexit ## To exit on error
|
||||
# set -o errunset ## To exit if a variable is referenced but not set
|
||||
|
||||
|
||||
function main() {
|
||||
cd "$(dirname "")"
|
||||
echo "Working Dir: " $(pwd)
|
||||
|
||||
source "/home/abaddon/Portable_Apps/py-venvs/gtk-apps-venv/venv/bin/activate"
|
||||
python -m nuitka --onefile --follow-imports --linux-onefile-icon="/home/abaddon/.config/solarfm/solarfm.png" solarfm/__main__.py -o solarfm.a
|
||||
}
|
||||
main "$@";
|
||||
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# . CONFIG.sh
|
||||
|
||||
# set -o xtrace ## To debug scripts
|
||||
# set -o errexit ## To exit on error
|
||||
# set -o errunset ## To exit if a variable is referenced but not set
|
||||
|
||||
|
||||
function main() {
|
||||
cd "$(dirname "")"
|
||||
echo "Working Dir: " $(pwd)
|
||||
|
||||
source "/home/abaddon/Portable_Apps/py-venvs/gtk-apps-venv/venv/bin/activate"
|
||||
python -m nuitka --follow-imports --standalone --linux-onefile-icon="/home/abaddon/.config/solarfm/solarfm.png" solarfm/__main__.py
|
||||
}
|
||||
main "$@";
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# . CONFIG.sh
|
||||
|
||||
# set -o xtrace ## To debug scripts
|
||||
# set -o errexit ## To exit on error
|
||||
# set -o errunset ## To exit if a variable is referenced but not set
|
||||
|
||||
|
||||
function main() {
|
||||
cd "$(dirname "")"
|
||||
echo "Working Dir: " $(pwd)
|
||||
|
||||
python -m pyright --createstub solarfm
|
||||
}
|
||||
main "$@";
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# . CONFIG.sh
|
||||
|
||||
# set -o xtrace ## To debug scripts
|
||||
# set -o errexit ## To exit on error
|
||||
# set -o errunset ## To exit if a variable is referenced but not set
|
||||
|
||||
|
||||
function main() {
|
||||
SCRIPTPATH="$( cd "$(dirname "")" >/dev/null 2>&1 ; pwd -P )"
|
||||
cd "${SCRIPTPATH}"
|
||||
echo "Working Dir: " $(pwd)
|
||||
|
||||
source '/home/abaddon/Portable_Apps/py-venvs/gtk-apps-venv/venv/bin/activate'
|
||||
python -m pudb $(pwd)/solarfm/__main__.py; bash
|
||||
}
|
||||
main "$@";
|
||||
11
src/setup.py
11
src/setup.py
@@ -1,11 +0,0 @@
|
||||
from setuptools import setup
|
||||
|
||||
setup(
|
||||
name='SolarFM',
|
||||
version='0.0.1',
|
||||
packages=['solarfm'],
|
||||
install_requires=[
|
||||
'setproctitle',
|
||||
'PyGobject',
|
||||
],
|
||||
)
|
||||
@@ -1,3 +0,0 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
@@ -50,8 +50,10 @@ class GridMixin:
|
||||
itr = store.get_iter(i)
|
||||
store.set_value(itr, 0, icon)
|
||||
icon.run_dispose()
|
||||
del icon
|
||||
except:
|
||||
icon.run_dispose()
|
||||
del icon
|
||||
continue
|
||||
|
||||
store.run_dispose()
|
||||
|
||||
@@ -85,7 +85,7 @@ class TabMixin(GridMixin):
|
||||
logger.debug(f"Reference count for scroll is: {scroll.__grefcount__}")
|
||||
|
||||
tab_box.clear_signals_and_data()
|
||||
icon_grid.clear_signals_and_data()
|
||||
# icon_grid.clear_signals_and_data()
|
||||
|
||||
self.builder.dereference_object(f"{wid}|{tid}|icon_grid")
|
||||
self.builder.dereference_object(f"{wid}|{tid}")
|
||||
@@ -94,11 +94,19 @@ class TabMixin(GridMixin):
|
||||
|
||||
tab_box.tab = None
|
||||
tab_box.unparent()
|
||||
icon_grid.unparent()
|
||||
scroll.unparent()
|
||||
|
||||
tab_box.run_dispose()
|
||||
icon_grid.run_dispose()
|
||||
scroll.run_dispose()
|
||||
icon_grid.unparent()
|
||||
scroll.unparent()
|
||||
|
||||
tab_box.destroy()
|
||||
tab_box.destroy()
|
||||
icon_grid.destroy()
|
||||
scroll.destroy()
|
||||
icon_grid.destroy()
|
||||
scroll.destroy()
|
||||
|
||||
logger.debug(f"Reference count for tab_box is: {tab_box.__grefcount__}")
|
||||
logger.debug(f"Reference count for icon_grid is: {icon_grid.__grefcount__}")
|
||||
|
||||
@@ -6,6 +6,7 @@ import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
gi.require_version('Gdk', '3.0')
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import GLib
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GdkPixbuf
|
||||
|
||||
@@ -66,6 +67,11 @@ class IconGridWidget(Gtk.IconView):
|
||||
self.connect("drag-motion", grid_on_drag_motion)
|
||||
]
|
||||
|
||||
def _destroy(grid):
|
||||
self.clear_signals_and_data()
|
||||
|
||||
self._handler_ids.append(self.connect("destroy", _destroy))
|
||||
|
||||
def _load_widgets(self):
|
||||
self.clear_and_set_new_store()
|
||||
|
||||
@@ -123,6 +129,9 @@ class IconGridWidget(Gtk.IconView):
|
||||
|
||||
store.clear()
|
||||
store.run_dispose()
|
||||
# GLib.idle_add(store.clear)
|
||||
# GLib.idle_add(store.run_dispose)
|
||||
# store.run_dispose()
|
||||
# store_ptr = int(hash(store)) # WARNING: not stable across runs
|
||||
# gtkmemreaper.free_list_store(store)
|
||||
del store
|
||||
|
||||
@@ -55,3 +55,4 @@ class TabHeaderWidget(Gtk.Box):
|
||||
for child in self.get_children():
|
||||
child.unparent()
|
||||
child.run_dispose()
|
||||
child.destroy()
|
||||
|
||||
Reference in New Issue
Block a user