Page 2 of 4

Lxde DE Module Build

Posted: 18 Jan 2018, 05:06
by ncmprhnsbl
okay, i suspect that if you:

Code: Select all

pman -Sddw <package>
this interferes with the pman module building process(because it relies on installing the package to the live system and copying some files from it)
therefore, if using pman :
pman -Sdd

for the pacman way of doing it check the script(uplxde.sh second half, manual instructions) here: Lxde DE Module Build (Post by ncmprhnsbl #61700)

Lxde DE Module Build

Posted: 19 Jan 2018, 03:34
by francois
@jack:
I am sure that we will have some enthusiast testers for you lxde module. ;)

Lxde DE Module Build

Posted: 19 Jan 2018, 04:22
by Jack
other notes:
file association for .xzm(activate/deactive) not showing in pcmanfm
How can I fix this?

Lxde DE Module Build

Posted: 19 Jan 2018, 22:32
by Jack
I found more problem with my LXDE and hope all can be fixed.

Here is one. lxmusic

Lxde DE Module Build

Posted: 21 Jan 2018, 01:11
by ncmprhnsbl
Jack wrote:
19 Jan 2018, 04:22
other notes:
file association for .xzm(activate/deactive) not showing in pcmanfm
How can I fix this?
no idea at this stage ... will look into it further

LXDE (help)

Posted: 26 Feb 2018, 18:54
by Jack
@ncmprhnsbl or all,

I rebuilt LXDE added some things to it. http://www.mediafire.com/file/i0vz3he8i ... 180226.xzm

1 I added LXTerminal (root) but when I use it then ask for password but it ask for guest but that wrong. Here is screen shot.
Image
2 I added File Manager PCManFM (root) but should ask for password and run but it don't do anything at all.

3 In PCManFM on left side under Places there should be Home Folder, Desktop, Filesystem, sda1, sda2 and sdb1 but then shows dev, pts, proc and sys that should not be there. Can this be fixed? Here is a Desktop what I mean.
Image
4 In Desktop perferences then Shows Desktop Icons there is a check mark in Trash Can but the Trash Can is not on Desktop. Can this be fixed? Try to do a screen shot.

LXDE (help)

Posted: 26 Feb 2018, 19:31
by Jack
Added build in first link. previous post: LXDE (help) (Post by Jack #62922)

LXDE (help)

Posted: 27 Feb 2018, 12:11
by beny
maybe the mtab option,in guest mode all ok but in root mode you have all the mount option listed in thunar i am on the last porteus so nemesis can be different.

LXDE (help)

Posted: 28 Feb 2018, 01:09
by ncmprhnsbl
Jack wrote:
26 Feb 2018, 18:54
1 I added LXTerminal (root) but when I use it then ask for password but it ask for guest but that wrong. Here is screen shot.
this is because /usr/local/bin/psu links to pkexec (which uses guest password by default)
it fails because lxterminal needs to be added to /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy like so:

Code: Select all

  <action id="org.freedesktop.policykit.pkexec.pcmanfm">
    <description>Run arc2xzm</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>
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..
Jack wrote:
26 Feb 2018, 18:54
3 In PCManFM on left side under Places there should be Home Folder, Desktop, Filesystem, sda1, sda2 and sdb1 but then shows dev, pts, proc and sys that should not be there. Can this be fixed?
don't know at this stage..
Jack wrote:
26 Feb 2018, 18:54
4 In Desktop perferences then Shows Desktop Icons there is a check mark in Trash Can but the Trash Can is not on Desktop. Can this be fixed?
you need gvfs for trash support

other stuff:
remove /usr/share/locales
probably don't need two icon sets
canterelle fonts is not needed since there is already Dejavu
/home/guest has wrong ownership(root:root) > chown -R guest:users /home/guest

don't forget this topic Lxde DE Module Build (there may be useful information there)

LXDE (help)

Posted: 28 Feb 2018, 03:40
by Jack
ncmprhnsbl wrote:
28 Feb 2018, 01:09
Jack wrote:
26 Feb 2018, 18:54
1 I added LXTerminal (root) but when I use it then ask for password but it ask for guest but that wrong. Here is screen shot.
this is because /usr/local/bin/psu links to pkexec (which uses guest password by default)
it fails because lxterminal needs to be added to /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy like so:

Code: Select all

  <action id="org.freedesktop.policykit.pkexec.pcmanfm">
    <description>Run arc2xzm</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>
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..
All I need to do is save as a file here /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy? And #2 make another one for it. Is that what you mean?
Jack wrote:
26 Feb 2018, 18:54
3 In PCManFM on left side under Places there should be Home Folder, Desktop, Filesystem, sda1, sda2 and sdb1 but then shows dev, pts, proc and sys that should not be there. Can this be fixed?
don't know at this stage..
Jack wrote:
26 Feb 2018, 18:54
4 In Desktop perferences then Shows Desktop Icons there is a check mark in Trash Can but the Trash Can is not on Desktop. Can this be fixed?
you need gvfs for trash support

other stuff:
remove /usr/share/locales
probably don't need two icon sets
canterelle fonts is not needed since there is already Dejavu
/home/guest has wrong ownership(root:root) > chown -R guest:users /home/guest

don't forget this topic Lxde DE Module Build (there may be useful information there)
#3 and 4 was fixed when I added gvfs. The other stuff I will work on next.

LXDE (help)

Posted: 28 Feb 2018, 04:10
by ncmprhnsbl
Jack wrote:
28 Feb 2018, 03:40
All I need to do is save as a file here /usr/share/polkit-1/actions/org.freedesktop.policykit.pkexec.policy? And #2 make another one for it. Is that what you mean?
no. you need to add the entry to that file (it already exists) and put that in your module ... except it should be:

Code: Select all

  <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>
and for lxterminal

LXDE (help)

Posted: 28 Feb 2018, 04:28
by Jack
I found this org.freedesktop.policykit.pkexec.policy.

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>


  <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>
That where I add it this?

Code: Select all

 <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>
I'm not thinking right today and that why I am having problem.

LXDE (help)

Posted: 28 Feb 2018, 04:34
by ncmprhnsbl
Jack wrote:
28 Feb 2018, 04:28
That where I add it this?
yep, and the same for lxterminal (replacing 'pcmanfm' with 'lxterminal')
ncmprhnsbl wrote:
28 Feb 2018, 01:09
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..

LXDE (help)

Posted: 28 Feb 2018, 15:04
by Jack
When I added gvfs and I did ls /var/lib/pacman/local and look for gvfs it not there. I even did a reboot and it still wasn't there. What is wrong or what happen to it?

LXDE (help)

Posted: 28 Feb 2018, 22:29
by ncmprhnsbl
i have no idea... :unknown: