Responsabilidade

  • 12 Posts
  • 312 Comments
Joined 3 years ago
cake
Cake day: June 24th, 2023

help-circle





  • Acho que a primeira coisa que você tem que fazer é se certificar que a versão flatpak instala também o blender-thumbnailer.

    Não sei exatamente como fazer essa verificação, mas suponho que vc vai ter que recorrer ao terminal e, talvez, até mesmo entrar no container do Blender no Flatpak para fazer essa verificação.

    A primeira coisa que eu tentaria é rodar um flatpak list pra descobrir se existe um blender-thumbnailer instalado.

    Depois que você se certificar que existe um app flatpak que faz isso, acredito que você consiga fazer funcionar substituíndo esse arquivo que você criou por algo do tipo

    [Thumbnailer Entry]  
    TryExec=/usr/bin/flatpak run blender-thumbnailer  
    Exec=/usr/bin/flatpak run blender-thumbnailer %i %o  
    MimeType=application/x-blender;
    

  • Posso estar enganado, mas acredito que programas Flatpak não podem rodar com privilégio elevado. Aplicativos como Zenmap, por exemplo, geralmente tem a seguinte descrição This version of Zenmap has a user restriction due to Flatpak: It can't be run as a root user..

    Como seu objetivo é criar um programa que mexe com uma parte tão profunda do sistema - módulos de kernel -, acredito que idealmente você deveria criar aplicativo nativo. Flatpak não vai te dar a permissão que você precisa para fazer essas modificações (pelo menos é o que eu acho).

    Não se preocupe com fazer seu programa um flatpak agora. Gaste suas energias fazendo ele funcionar nativamente. Depois que ele já estiver funcionando nativamente, daí você avalia a viabilidade de tornar ele um flatpak ou não. Também estudaria uma alternativa de criar um AppImage ao invés de Flatpak, pois acredito que tem como você rodar o pkexec com AppImage.






  • Well, it is. Is so stable that many of Arch users install Arch once and don’t have to format the computer again in years.

    Of course you can’t say that Arch is as stable as Debian, cause it’s not. But it’s totally unfair compare these distros, cause the use cases are completely different.

    Don’t use a ruler to measure how loud a sound is.


  • I called it “stable enough”. For a home user, it’s stable enough. It’s a myth that Arch will break every update or it is unstable. Arch is as unstable or stable as you make it be.

    You also can’t setup automatic updates safely

    That’s partially true. If you’re trying to run a server, yeah, don’t set any automatic update. If you’re home user, you may do it and you’ll be fine, but be aware of your system.








  • Why are you using that?

        location ~ /\.ht {
            deny all;
        }
    

    You’re denying the access to your root, which is the public/ folder and has the file .htaccess that has

    <IfModule mod_rewrite.c>
        <IfModule mod_negotiation.c>
            Options -MultiViews -Indexes
        </IfModule>
    
        RewriteEngine On
    
        # Handle Authorization Header
        RewriteCond %{HTTP:Authorization} .
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        # Redirect Trailing Slashes If Not A Folder...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_URI} (.+)/$
        RewriteRule ^ %1 [L,R=301]
    
        # Send Requests To Front Controller...
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^ index.php [L]
    </IfModule>
    

    This file handles the income requests and send to the front controller.