Page 3 of 4

LXDE (help)

Posted: 01 Mar 2018, 00:02
by brokenman
For those interested, some time ago I added: pkexec-add-application

This little script adds apps to pkexec.

LXDE (help)

Posted: 01 Mar 2018, 01:07
by ncmprhnsbl
brokenman wrote:
01 Mar 2018, 00:02
For those interested, some time ago I added: pkexec-add-application
in slackware porteus but not nemesis afaics ... i should probably try and see if it ports ok..(edit: it does, no problem)
i'm not 100% sold on pkexec .. seems to have problems with env variables (has it's own limited set) and complicated commands..
but that could be i haven't figured out how to use it properly..

Lxde DE Module Build

Posted: 01 Mar 2018, 12:55
by ncmprhnsbl
merged this topic with "Lxde DE Module Build"..

Lxde DE Module Build

Posted: 02 Mar 2018, 20:20
by Jack
I inserted at ---start--- and ---end--- is then I save it. I reboot and it didn't work.

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>

Lxde DE Module Build

Posted: 02 Mar 2018, 21:33
by ncmprhnsbl
ncmprhnsbl wrote:
28 Feb 2018, 01:09
2.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..
so you need to remove "dbus-launch --exit-with-session"from the Exec= line in /usr/share/applicastions/su-pcmanfm.desktop
(and you don't have to reboot to test it)

Lxde DE Module Build

Posted: 02 Mar 2018, 21:59
by Jack
I did what you said in message 34 and 35 they both didn't work so I guess I won't have su-pcmanfm and su-terminal for now.

Lxde DE Module Build

Posted: 10 Mar 2018, 17:13
by francois
@jack:
Is it possible to provide the latest version of your nemesis lxde module at the head of the first post of this thread. In addition could you post a summary of the bugs or problems that you want to solved for the module to be functional as you would like it?

Lxde DE Module Build

Posted: 10 Mar 2018, 17:39
by Jack
@francois,

That is my latest version right now but I'm working on one now. I will post it when I get it done.

Lxde DE Module Build

Posted: 10 Mar 2018, 17:41
by francois
Great!

Lxde DE Module Build

Posted: 10 Mar 2018, 19:19
by Jack
I build a new LXDE today and with ncmprhnsbl new base modules. I try to use update-cache but when I boot up it won't let me boot in to Text mode. What I mean is when I pick Text mode it boots in to LXDE.

What can I do to fixed the problem?

Lxde DE Module Build

Posted: 10 Mar 2018, 20:59
by ncmprhnsbl
1. 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:

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"
place this module(name it "textmode.xzm") in <your usb>/porteus/optional folder and at the boot screen press tab and add "load=textmode"
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..

Lxde DE Module Build

Posted: 10 Mar 2018, 22:09
by Jack
ncmprhnsbl wrote:
10 Mar 2018, 20:59
1. 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:

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"
place this module(name it "textmode.xzm") in <your usb>/porteus/optional folder and at the boot screen press tab and add "load=textmode"
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..
I did what you wrote and I made the textmode.xzm then when it rebooted it did the same thing.

Lxde DE Module Build

Posted: 10 Mar 2018, 23:27
by Jack
@francois,

It be some time before I have another release. I ran in to some problems.

Lxde DE Module Build

Posted: 11 Mar 2018, 00:56
by ncmprhnsbl
Jack wrote:
10 Mar 2018, 22:09
i did what you wrote and I made the textmode.xzm then when it rebooted it did the same thing.
worked for me.. maybe check your ownerships:
(extract the module)

Code: Select all

ls -aRl textmode

Lxde DE Module Build

Posted: 11 Mar 2018, 01:34
by francois
@jack:
No hurry, no pressure. You will get it fix ncmprhnsbl is there. ;)