🐞 fix(_path): fix relative to absolute path

This commit is contained in:
Eshan Roy
2024-11-26 10:05:28 +05:30
parent 6ec4d91329
commit e1e87450b7
3 changed files with 21 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/python
import datetime
from datetime import datetime

View File

@@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/python
import os
from os import makedirs

View File

@@ -1,7 +1,23 @@
#!/bin/python
#!/usr/bin/python
import os
import libs.functions as fn
import gi
gi.require_version("Gtk", "3.0")
gi.require_version("Gtk", "4.0")
from gi.repository import Gtk, Gio, GLib, Gdk
base_dir = fn.os.path.dirname(fn.os.path.realpath(__file__))
app_name = "Snigdha OS Kernel Switcher"
app_version = "${app_version}"
app_name_dir = "snigdhaos-kernel-switcher"
app_id = "org.snigdhaos.kernelswitcher"
lock_file = "/tmp/.sks.lock"
progress_lock_file = "/tmp/.sks-progress.lock"
pid_file ="/tmp/.sks.pid"
class Main(Gtk.Application):
def __init__(self):
super().__init__(application_id=app_id, flags=Gio.ApplicationFlags.FLAGS_NONE)
def do_activate(self):
default_context = GLib.