rohankishore / Aura-Text

Aura Text is a versatile and powerful text editor powered by QScintilla that provides all the necessary tools for developers. It is build using PyQt6 and Python.
GNU General Public License v3.0
288 stars 22 forks source link

Better linux support #59

Closed scottpeterman closed 10 months ago

scottpeterman commented 11 months ago

So I tried running this on linux - you have pathing issues. obviously had to remove some windows/win32 type libraries, but it will run. I changed some path references to this: app_data_dir = os.path.realpath(os.path.join("LocalAppData")) local_app_data = os.path.join(app_data_dir, "AuraText")

While considering if you want it to run on linux, there are some improvements you could make to your terminal. I've done some work in that area you are welcome to re-use. https://github.com/scottpeterman/UglyWidgets Works with cmd.exe, powershell or wsl.exe: import sys from PyQt6.QtWidgets import QApplication, QMainWindow from qtwincon_widget import Ui_Terminal

def main(): app = QApplication(sys.argv)

# Create a QMainWindow instance
main_window = QMainWindow()
main_window.resize(800, 600)  # Resize the window to 800x600

# Create a Ui_Terminal instance
shell = "cmd.exe"  # You can also use "powershell.exe" or "wsl.exe"
terminal = Ui_Terminal(shell, main_window)

# Set terminal as the central widget of main_window
main_window.setCentralWidget(terminal)
main_window.setWindowTitle(f"PyQt6 - Terminal Widget - Shell is: {shell}")

main_window.show()

sys.exit(app.exec())

if name == "main": main()

rohankishore commented 11 months ago

Hey @scottpeterman!

Thank you for your contribution. I'd consider using your Terminal widget.

rohankishore commented 11 months ago

I've credit you too thanks a lot for the widgets ;)

scottpeterman commented 7 months ago

Thanks very much!