Lxde DE Module Build

Arch based Porteus community project

Moderator: M. Eerie

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#16 by ncmprhnsbl » 18 Jan 2018, 05:06

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)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
francois
Contributor
Contributor
Posts: 6433
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Lxde DE Module Build

Post#17 by francois » 19 Jan 2018, 03:34

@jack:
I am sure that we will have some enthusiast testers for you lxde module. ;)
Prendre son temps, profiter de celui qui passe.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#18 by Jack » 19 Jan 2018, 04:22

other notes:
file association for .xzm(activate/deactive) not showing in pcmanfm
How can I fix this?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

Lxde DE Module Build

Post#19 by Jack » 19 Jan 2018, 22:32

I found more problem with my LXDE and hope all can be fixed.

Here is one. lxmusic
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

Lxde DE Module Build

Post#20 by ncmprhnsbl » 21 Jan 2018, 01:11

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

LXDE (help)

Post#21 by Jack » 26 Feb 2018, 18:54

@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.
Last edited by Jack on 26 Feb 2018, 21:22, edited 1 time in total.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

LXDE (help)

Post#22 by Jack » 26 Feb 2018, 19:31

Added build in first link. previous post: LXDE (help) (Post by Jack #62922)
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

beny
Full of knowledge
Full of knowledge
Posts: 2083
Joined: 02 Jan 2011, 11:33
Location: italy

LXDE (help)

Post#23 by beny » 27 Feb 2018, 12:11

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.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

LXDE (help)

Post#24 by ncmprhnsbl » 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..
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)
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

LXDE (help)

Post#25 by Jack » 28 Feb 2018, 03:40

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.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

LXDE (help)

Post#26 by ncmprhnsbl » 28 Feb 2018, 04:10

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
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

LXDE (help)

Post#27 by Jack » 28 Feb 2018, 04:28

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.
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

LXDE (help)

Post#28 by ncmprhnsbl » 28 Feb 2018, 04:34

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..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Jack
Contributor
Contributor
Posts: 1857
Joined: 09 Aug 2013, 14:25
Distribution: Porteus and Nemesis
Location: USA

LXDE (help)

Post#29 by Jack » 28 Feb 2018, 15:04

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?
I just like Slackware because I think it teach you about Linux to build packages where Ubuntu is like Windows you just install programs you want.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3918
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

LXDE (help)

Post#30 by ncmprhnsbl » 28 Feb 2018, 22:29

i have no idea... :unknown:
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

Post Reply