fixed: hyprpm now works and added some more env var

This commit is contained in:
Kaley, Fischer 2024-03-02 19:02:56 +01:00
parent 2d0fb682c8
commit 7fed77793f
2 changed files with 8 additions and 2 deletions

View file

@ -363,9 +363,9 @@ bool CPluginManager::updateHeaders(bool force) {
std::filesystem::remove_all("/tmp/hyprpm/hyprland"); std::filesystem::remove_all("/tmp/hyprpm/hyprland");
} }
progress.printMessageAbove(std::string{Colors::YELLOW} + "!" + Colors::RESET + " Cloning https://github.com/hyprwm/hyprland, this might take a moment."); progress.printMessageAbove(std::string{Colors::YELLOW} + "!" + Colors::RESET + " Cloning https://github.com/Trensa-Organization/hyprland, this might take a moment.");
std::string ret = execAndGet("cd /tmp/hyprpm && git clone --recursive https://github.com/hyprwm/hyprland hyprland"); std::string ret = execAndGet("cd /tmp/hyprpm && git clone --recursive https://github.com/Trensa-Organization/hyprland hyprland");
if (!std::filesystem::exists("/tmp/hyprpm/hyprland")) { if (!std::filesystem::exists("/tmp/hyprpm/hyprland")) {
std::cerr << "\n" << Colors::RED << "" << Colors::RESET << " Could not clone the hyprland repository. shell returned:\n" << ret << "\n"; std::cerr << "\n" << Colors::RED << "" << Colors::RESET << " Could not clone the hyprland repository. shell returned:\n" << ret << "\n";

View file

@ -34,6 +34,12 @@ int main(int argc, char** argv) {
setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1); setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1);
setenv("MOZ_ENABLE_WAYLAND", "1", 1); setenv("MOZ_ENABLE_WAYLAND", "1", 1);
setenv("XDG_CURRENT_DESKTOP", "Hyprland", 1); setenv("XDG_CURRENT_DESKTOP", "Hyprland", 1);
setenv("GDK_BACKEND", "wayland", 1);
setenv("enable-features", "UseOzonePlatform", 1);
setenv("ozone-platform", "wayland", 1);
setenv("ELECTRON_OZONE_PLATFORM_HINT", "wayland", 1);
setenv("GTK_MODULES", "gail:atk-bridge:canberra-gtk-module", 1);
setenv("ACCESSIBILITY_ENABLED", "1", 1);
// parse some args // parse some args
std::string configPath; std::string configPath;