Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-12-29 14:55:21

Herix
Member
Registered: 2020-11-13
Posts: 9

How to launch "gnome-logs" as root from the Whisker menu ?

When I edit the entry with "alacarte" aka "Main Menu", the command is simply "gnome-logs". I works fine, except that, of course, it gives access only to the log of the current user, whereas I want to see the system logs.

(I am, of course, the sole user)

Offline

#2 2021-12-29 15:01:54

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: How to launch "gnome-logs" as root from the Whisker menu ?

What's your distribution and its version? Can you post the output of the `groups` command?


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#3 2021-12-29 21:06:48

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: How to launch "gnome-logs" as root from the Whisker menu ?

for any menu to do that either it needs to change to run via sudo, or run as root (the whole user being root, if Xfce allows that).  not a trivial choice.  do you really need to use Whisker for that?

Offline

#4 2021-12-30 02:55:59

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: How to launch "gnome-logs" as root from the Whisker menu ?

You don't need superuser privileges to access log files if you're on a Debian-based distribution. Have a read: https://wiki.debian.org/SystemGroups


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#5 2022-01-03 18:42:43

Herix
Member
Registered: 2020-11-13
Posts: 9

Re: How to launch "gnome-logs" as root from the Whisker menu ?

[self answer]

Digging further I found a similar question and an approaching one, which prompted me to enquire what this polkit thing is about.

I was then able to weave my own org.gnome.logs (cf code infra).

Of course, I edited the menu entry to

pkexec gnome-logs

. Thinking of it, that was probably what I got upon installing gnome-logs. It did not work out of the box, as neither the package nor I were aware of those "policy".

It's all fine  … except that I now have the reverse issue : logs open all right albeit with the warning that "Unable to read user logs". Doesn't matter, worth it.

I still wonder though : is there really nothing simpler ?


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

    <vendor>Debian GNOME Maintainers</vendor>
    <vendor_url>https://wiki.gnome.org/Apps/Logs</vendor_url>
    <icon_name>gnome-logs</icon_name>
    <action id="org.gnome.gnome-logs">

        <description>Run gnome-logs as root</description>
        <description xml:lang="ar">شغّل مُقسِّمج بصلاحية الجذر</description>
        <description xml:lang="be">Запусціць gnome-logs ад імя суперкарыстальніка</description>
        <description xml:lang="ca">Executa gnome-logs com a root</description>
        <description xml:lang="cs">Spouštět gnome-logs pod uživatelem root</description>
        <description xml:lang="da">Kør gnome-logs som root</description>
        <description xml:lang="de">gnome-logs als Root-Benutzer ausführen</description>
        <description xml:lang="el">Εκτέλεση gnome-logs ως root</description>
        <description xml:lang="en_GB">Run gnome-logs as root</description>
        <description xml:lang="eo">Ruli gnome-logs kiel root</description>
        <description xml:lang="es">Ejecutar gnome-logs como root</description>
        <description xml:lang="eu">Exekutatu gnome-logs 'root' gisa</description>
        <description xml:lang="fi">Suorita gnome-logs root-käyttäjänä</description>
        <description xml:lang="fr">Lancer gnome-logs en tant qu’utilisateur root</description>
        <description xml:lang="fur">Eseguìs gnome-logs come root</description>
        <description xml:lang="hr">Pokreni gnome-logs kao korijenskog korisnika</description>
        <description xml:lang="hu">gnome-logs futtatása rendszergazdaként</description>
        <description xml:lang="id">Jalankan gnome-logs sebagai root</description>
        <description xml:lang="is">Keyra gnome-logs sem kerfisstjóri/root</description>
        <description xml:lang="it">Esegui gnome-logs come root</description>
        <description xml:lang="kk">gnome-logs қолданбасын әкімші ретінде жөнелту</description>
        <description xml:lang="ko">루트 권한으로 gnome-logs 실행</description>
        <description xml:lang="lt">Vykdyti gnome-logs root teisėmis</description>
        <description xml:lang="lv">Palaist gnome-logs kā root</description>
        <description xml:lang="nl">gnome-logs uitvoeren als systeembeheerder (root)</description>
        <description xml:lang="pa">ਜੀਪਾਰਟਡ ਨੂੰ ਰੂਟ ਵਜੋਂ ਚਲਾਓ</description>
        <description xml:lang="pl">Uruchomienie programu gnome-logs jako administrator</description>
        <description xml:lang="pt_BR">Execute gnome-logs como root</description>
        <description xml:lang="ro">Rulează gnome-logs ca root</description>
        <description xml:lang="ru">Запустить gnome-logs с правами root</description>
        <description xml:lang="sk">Spustiť gnome-logs ako správca</description>
        <description xml:lang="sr">Покрените Гпартед као администратор</description>
        <description xml:lang="sr@latin">Pokrenite gnome-logs kao administrator</description>
        <description xml:lang="sv">Kör gnome-logs som root</description>
        <description xml:lang="tr">GPartedʼi kök olarak çalıştır</description>
        <description xml:lang="uk">Запуск gnome-logs від імені root</description>
        <description xml:lang="vi">Chạy gnome-logs với tư cách siêu quản trị</description>
        <description xml:lang="zh_CN">以 root 运行 gnome-logs</description>
        <description xml:lang="zh_TW">以 root 執行 gnome-logs</description>
        <message>Authentication is required to run the gnome-logs Partition Editor as root</message>
        <message xml:lang="ar">الاستيثاق مطلوب لتشغيل محرر الأقسام مُقسِّمج بصلاحية الجذر</message>
        <message xml:lang="be">Для запуску gnome-logs ад імя суперкарыстальніка патрабуецца аўтэнтыфікацыя</message>
        <message xml:lang="ca">Es requereix autenticació per a executar l'editor de particions gnome-logs com a root</message>
        <message xml:lang="cs">Ke spuštění editoru oddílů gnome-logs pod uživatelem root je vyžadováno ověření</message>
        <message xml:lang="da">Godkendelse er krævet for at køre partitioneringsprogrammet gnome-logs som root</message>
        <message xml:lang="de">Legitimierung ist erforderlich, um gnome-logs als Root-Benutzer auszuführen</message>
        <message xml:lang="en_GB">Authentication is required to run the gnome-logs Partition Editor as root</message>
        <message xml:lang="eo">Necesas aŭtentigo por ruli gnome-logs Subdiskoredaktilo kiel root</message>
        <message xml:lang="es">Se necesita autenticación para ejecutar el editor de particiones gnome-logs como root</message>
        <message xml:lang="eu">gnome-logs partizioen editorea 'root' pribilegiorekin exekutatzeko beharrezkoa da autentifikatzea</message>
        <message xml:lang="fi">Tunnistautuminen vaaditaa gnome-logs-osiomuokkaimen suorittamiseksi root-käyttäjänä</message>
        <message xml:lang="fr">Il est nécessaire de s’authentifier pour lancer l’éditeur de partitions gnome-logs en tant qu’utilisateur root</message>
        <message xml:lang="fur">La autenticazion e je necessarie par eseguî come root l'editôr di partizions gnome-logs</message>
        <message xml:lang="hr">Potrebna je ovjera za pokretanje gnome-logs uređivača particija kao korijenskog korisnika</message>
        <message xml:lang="hu">Hitelesítés szükséges a gnome-logs partíciószerkesztő rendszergazdaként való futtatásához</message>
        <message xml:lang="id">Otentikasi diperlukan untuk menjalankan Penyunting Partisi gnome-logs sebagai root</message>
        <message xml:lang="is">Auðkenningar er krafist til að keyra gnome-logs disksneiðingarstjórann sem kerfisstjóri (root)</message>
        <message xml:lang="it">È richiesto autenticarsi per eseguire «Editor di partizioni gnome-logs» come root</message>
        <message xml:lang="kk">gnome-logs бөлімдер түзеткішін әкімші ретінде жөнелту үшін аутентификация керек</message>
        <message xml:lang="ko">gnome-logs 분할 영역 편집기를 루트 권한으로 실행하려면 인증이 필요합니다</message>
        <message xml:lang="lt">Reikia patvirtinti tapatybę norint vykdyti gnome-logs skirsnių redaktorių root teisėmis</message>
        <message xml:lang="lv">Nepieciešama autentificēšana, lai palaistu gnome-logs nodalījumu redaktoru ar root tiesībām</message>
        <message xml:lang="nl">Authenticatie is vereist om gnome-logs partitiebewerker uit te voeren als systeembeheerder (root)</message>
        <message xml:lang="pa">ਜੀਪਾਰਟਡ ਪਾਰਟੀਸ਼ਨ ਐਡੀਟਰ ਨੂੰ ਰੂਟ ਵਜੋਂ ਚਲਾਣਉ ਲਈ ਪਰਮਾਣਕਿਤਾ ਦੀ ਲੋੜ ਹੈ</message>
        <message xml:lang="pl">Wymagane jest uwierzytelnienie, aby uruchomić edytora partycji gnome-logs jako administrator</message>
        <message xml:lang="pt_BR">Autenticação é necessária para executar o Editor de Partições gnome-logs como root</message>
        <message xml:lang="ro">Autentificarea este necesară pentru a rula Editorul de partiții gnome-logs ca root</message>
        <message xml:lang="ru">Требуется авторизация для запуска редактора разделов gnome-logs с правами root</message>
        <message xml:lang="sk">Na spustenie editora oddielov gnome-logs ako správca sa vyžaduje overenie totožnosti</message>
        <message xml:lang="sr">Потребно је потврђивање идентитета за покретање Гпартеда као администратор</message>
        <message xml:lang="sr@latin">Potrebno je potvrđivanje identiteta za pokretanje Gparteda kao administrator</message>
        <message xml:lang="sv">Autentisering krävs för att köra gnome-logs partitionsredigerare som root</message>
        <message xml:lang="tr">gnome-logs Disk Bölümü Düzenleyicisiʼni kök olarak çalıştırmak içinyetkilendirme gereklidir</message>
        <message xml:lang="uk">Щоб запустити редактор розділів gnome-logs від імені root, слід пройти розпізнавання</message>
        <message xml:lang="vi">Cần xác thực để chạy bộ Sửa phân vùng đĩa gnome-logs dưới tư cách siêu quản trị</message>
        <message xml:lang="zh_CN">以 root 身份运行 gnome-logs 分区编辑器需要授权</message>
        <message xml:lang="zh_TW">需要驗證才能以 root 執行 gnome-logs 分割區編輯器</message>
        <defaults>
            <allow_any>auth_admin</allow_any>
            <allow_inactive>auth_admin</allow_inactive>
            <allow_active>auth_admin</allow_active>
        </defaults>
        <annotate key="org.freedesktop.policykit.exec.path">/usr/bin/gnome-logs</annotate>
        <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>

    </action>

</policyconfig>

Last edited by Herix (2022-01-03 18:56:37)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 580.66 KiB (Peak: 597.95 KiB) ]