LXDE (help)
Posted: 01 Mar 2018, 00:02
For those interested, some time ago I added: pkexec-add-application
This little script adds apps to pkexec.
This little script adds apps to pkexec.
in slackware porteus but not nemesis afaics ... i should probably try and see if it ports ok..(edit: it does, no problem)
Code: Select all
<?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>
<action id="org.freedesktop.policykit.pkexec.activate">
<description>Activate as root</description>
<message>Authentication is required to activate</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/activate</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
<action id="org.freedesktop.policykit.pkexec.deactivate">
<description>Dectivate as root</description>
<message>Authentication is required to deactivate</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/local/bin/deactivate</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">TRUE</annotate>
</action>
---start---
<action id="org.freedesktop.policykit.pkexec.pcmanfm">
<description>Run su-pcmanfm</description>
<message>Authentication is required to run pcmanfm</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/pcmanfm</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
---end---
<action id="org.freedesktop.policykit.pkexec.dir2xzm">
<description>Run dir2xzm</description>
<message>Authentication is required to run dir2xzm</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/local/bin/dir2xzm</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
<action id="org.freedesktop.policykit.pkexec.xzm2dir">
<description>Run xzm2dir</description>
<message>Authentication is required to run xzm2dir</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/local/bin/xzm2dir</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
<action id="org.freedesktop.policykit.pkexec.arc2xzm">
<description>Run arc2xzm</description>
<message>Authentication is required to run arc2xzm</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/local/bin/arc2xzm</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>
so you need to remove "dbus-launch --exit-with-session"from the Exec= line in /usr/share/applicastions/su-pcmanfm.desktopncmprhnsbl wrote: ↑28 Feb 2018, 01:092.same as above (except pkexec can't handle the "dbus-launch --exit-with-session" part...(look at the .desktop file)
that said, i think it's probably easier/better to just include/use gksu(and link /usr/local/bin/psu to it) since pkexec seems to have some limitations..
Code: Select all
# Set the baud rate of the terminal line
baud="38400"
# set the terminal type
term_type="linux"
# extra options to pass to agetty for this port
#agetty_options="--autologin=guest"
# make agetty quiet
#quiet="no"
I did what you wrote and I made the textmode.xzm then when it rebooted it did the same thing.ncmprhnsbl wrote: ↑10 Mar 2018, 20:591. if you can open a terminal after lxde has started, you can run update-cache then..
if not :
2. make a module which contains: /etc/conf.d/agetty.tty1 with line 8 commented(#)
it should look like this:place this module(name it "textmode.xzm") in <your usb>/porteus/optional folder and at the boot screen press tab and add "load=textmode"Code: Select all
# Set the baud rate of the terminal line baud="38400" # set the terminal type term_type="linux" # extra options to pass to agetty for this port #agetty_options="--autologin=guest" # make agetty quiet #quiet="no"
or edit porteus.cfg and add it to the textmode entry..
also, check this post : Lxde DE Module Build (Post by ncmprhnsbl #61700)
this way, you can simply update your module without rebuilding it from scratch each time..