Francios, All,
I wanted to take this discussion out of bug 1902 temporarily to see if we
cannot further the issue on list. According to the freedesktop links for
accommodating clean-systemd (consolekit free) user session/process tracking, one
of the tests to establish if session tracking is active is to check:
$ loginctl show-session $XDG_SESSION_ID
Id=1
Timestamp=jeu. 2014-02-20 21:01:46 CET
TimestampMonotonic=14146902
VTNr=7
Display=:0
Remote=no
Service=tdm-trinity
Scope=session-1.scope
Leader=984
Audit=1
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Name=francois
for the presence of 'Remote=no' and 'Active=yes'. Francios reports that he is
using a consolekit free environment and has provided the output above which
indicates that session tracking is active on his install -- BUT -- he is
experiencing the exact same problems with tdeio_sftp /file/http/ connection
being left open on his install. I have been making very slow progress
understanding what is going on. I think in Francios case he has established
proper 'user session tracking' showing that session tracking can with in TDE in
this case without code changes. However, I think it is the 'user process
tracking' part that is not working and causing the tdeio process to remain open.
What we need to establish is what config Francios is using that allows proper
user session tracking to be established. In my clean-systemd environment, I get:
22:19 valhalla:~> loginctl show-session $XDG_SESSION_ID
NAutoVTs=6
KillExcludeUsers=root
KillUserProcesses=no
IdleHint=yes
IdleSinceHint=0
IdleSinceHintMonotonic=0
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
From the documentation that shows I do not have it configured properly. I
believe it may have to do with differences in the /etc/pam.d config. Francios,
what are you using?
I think the users 'process' tracking may have to do with code current wrapped
within consolekit preprocessor checks that is not duplicated outside these
checks but is necessary for process tracking in the absence of consolekit. This
is also where I am focusing effort to learn what additions to the
kdebase/tdm/backend code may be needed to comply with the freedesktop.org
systemd environment.
Francios, let me know your thoughts on this and Slavek let me know if you have
any other suggestions as well. I am encouraged to see Francios has part of the
correct config working.
--
David C. Rankin, J.D.,P.E.
Slavek, All,
One of the traditional KDE applications that I just tried to find in TDE to
look through the ~/.trinity/share/apps data was 'kxmledit'. It is a good/solid
xml editor. The kde3 version is 1.14. You can get it here:
http://downloads.sourceforge.net/project/kxmleditor/KXMLEditor/1.1.4/kxmled…
It is a small package and actually one 'worth' adding. Let me know what you
think. I would like to see TDE at a minimum have:
text editor (done - kate,kwrite,kedit,quanta+)
hex editor (done - khexedit)
xml editor (need...)
For those not familiar with it, here is a screenshot from suse/kde3:
http://www.3111skyline.com/dl/dt/trinity/ss/kxmleditor-needed.jpg
--
David C. Rankin, J.D.,P.E.
I am just not geek enough to figure this out:
In the folder pane, when I "right-click" on the mail list folder name, and select "New Message to Mailing-List...," the new composer window populates the Identity and To text boxes but does not include my signature in the text window.
Conversely, when I select the mail list in the folder pane and then select the New Message toolbar icon or the same from the File menu, the compose window includes my signature from my template but fails to populate the To text box.
I want the text boxes populated for the mail list and the text window to already include my signature. How do I achieve that?
Darrell
Is the module dependencies/tqca still needed?
I use dependencies/tqca-tls, but not tqca. Also there has been no commit in tqca since Jul 2012.
cheers
Michele
All,
Working the systemd issue, I ran across a question. Where do you look in the
code TDE or system to find out what is calling/using the files located in
/etc/pam.d? I say that because the only trinity related pam.d file I install is:
/etc/pam.d/trinity
#%PAM-1.0
#auth required pam_securetty.so
auth requisite pam_nologin.so
auth include system-local-login
account include system-local-login
session include system-local-login
Files already existing in pam.d relevant to the trinity file are:
/etc/pam.d/system-local-login
#%PAM-1.0
auth include system-login
account include system-login
password include system-login
session include system-login
/etc/pam.d/system-login
#%PAM-1.0
auth required pam_tally.so onerr=succeed file=/var/log/faillog
auth required pam_shells.so
auth requisite pam_nologin.so
auth include system-auth
account required pam_access.so
account required pam_nologin.so
account include system-auth
password include system-auth
session optional pam_loginuid.so
session include system-auth
session optional pam_motd.so motd=/etc/motd
session optional pam_mail.so dir=/var/spool/mail standard quiet
-session optional pam_systemd.so
session required pam_env.so
However, even after the logind-multiseat-patch, the loginctl show-session
$XDG_SESSION_ID output is still:
NAutoVTs=6
KillExcludeUsers=root
KillUserProcesses=no
IdleHint=yes
IdleSinceHint=0
IdleSinceHintMonotonic=0
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
This suggests to me, that my pam.d setup is not sufficient to enable the
needed user session tracking. Francios pam config is different in several areas
and he has several more pam.d files related to kde/TDE than I do. How do you
tell you setup to use additional files in /etc/pam.d/? Where is the code that
asks to see a file named '/etc/pam.d/whatever' in TDE and how is the name of the
file in /etc/pam.d/foo established? Where is the link between the code and
'foo'? I think that is another area that could be giving all of us without
consolekit issue. Because you are required to register you login and session
with the 'pam stack' and that is where I'm stumbling.
One of the requirements in the freedesktop.org docs is that you register the
greeter with pam. I don't see that explicitly happening anywhere in
tdm/backend/client.c. The best I can come up with is it should be done with
something like this at about line 1325 in the multiseat patched file:
if ((pretc = pam_misc_setenv( pamh, XDG_SESSION_CLASS, "greeter", 0 )) !=
PAM_SUCCESS) {
ReInitErrorLog();
LogError( "pam_misc_setenv() for %s failed: %s\n",
curuser, pam_strerror( pamh, pretc ) );
return 0;
}
This is similar to an example given by freedesktop for registering the greeter
with pam.
Can someone with more smarts regarding pam give me a little insight into
(1) where the code -> /etc/pam.d/foo file connection is made; and
(2) do you find the greeter being previously registered with pam anywhere else
outside of the consolekit preprocessor directives?
--
David C. Rankin, J.D.,P.E.
All,
I just tried to supply a patch to 1902, and upon sending the attachment, I
received:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Please contact the server administrator, [no address given] and inform them of
the time the error occurred, and anything you might have done that may have
caused the error.
More information about this error may be available in the server error log.
--
David C. Rankin, J.D.,P.E.
Francios, Slavek,
I have ported the kde-workspace-4.11.0-kdm-logind-multiseat.patch to tdebase.
The code fit like a glove showing that there had been very little change to kdm
in kde4. I was able to find the exact context for each hunk and I manually
applied the hunks to the relevant tdebase files. I need you to look over the
patch and make sure it looks sane. Let me know if you see anything out of place.
I will attempt a tdebase build, test if successful and will report back. Patch
attached.
--
David C. Rankin, J.D.,P.E.
Darrell,
I have completed conversion of the katesort-1.0 source to TQt3/TDE and it
builds fine. Download the converted source here:
http://www.3111skyline.com/dl/dt/trinity/cfg/applications-katesort-plugin.t…
The source installs properly in /opt/trinity/share/apps/kate/plugins like all
the rest of the plugins, but for some reason isn't automatically read and
included by kate when kate is started. I'll look at the kate code. I suspect it
is due to all plugins beginning with kate..... and this just being 'sort'
instead of 'katesort'
The package contents and the plugin_sort.rc are:
tde-katesort-plugin-R14preRC1-1-i686.pkg.tar.xz
/opt/
/opt/trinity/
/opt/trinity/lib/
/opt/trinity/lib/trinity/
/opt/trinity/lib/trinity/libsortplugin.la
/opt/trinity/lib/trinity/libsortplugin.so
/opt/trinity/share/
/opt/trinity/share/apps/
/opt/trinity/share/apps/kate/
/opt/trinity/share/apps/kate/plugins/
/opt/trinity/share/apps/kate/plugins/sort/
/opt/trinity/share/apps/kate/plugins/sort/plugin_sort.rc
/opt/trinity/share/doc/
/opt/trinity/share/doc/tde/
/opt/trinity/share/doc/tde/HTML/
/opt/trinity/share/doc/tde/HTML/cs/
/opt/trinity/share/doc/tde/HTML/cs/katesort/
/opt/trinity/share/doc/tde/HTML/cs/katesort/common
/opt/trinity/share/doc/tde/HTML/cs/katesort/index.cache.bz2
/opt/trinity/share/doc/tde/HTML/cs/katesort/index.docbook
/opt/trinity/share/doc/tde/HTML/cs/katesort/sort_plugin_cs.png
/opt/trinity/share/doc/tde/HTML/en/
/opt/trinity/share/doc/tde/HTML/en/katesort/
/opt/trinity/share/doc/tde/HTML/en/katesort/common
/opt/trinity/share/doc/tde/HTML/en/katesort/index.cache.bz2
/opt/trinity/share/doc/tde/HTML/en/katesort/index.docbook
/opt/trinity/share/doc/tde/HTML/en/katesort/sort_plugin_en.png
/opt/trinity/share/icons/
/opt/trinity/share/icons/hicolor/
/opt/trinity/share/icons/hicolor/16x16/
/opt/trinity/share/icons/hicolor/16x16/actions/
/opt/trinity/share/icons/hicolor/16x16/actions/katesort.png
/opt/trinity/share/icons/hicolor/32x32/
/opt/trinity/share/icons/hicolor/32x32/actions/
/opt/trinity/share/icons/hicolor/32x32/actions/katesort.png
/opt/trinity/share/services/
/opt/trinity/share/services/katesort.desktop
/opt/trinity/share/apps/kate/plugins/sort/plugin_sort.rc
<!DOCTYPE kpartgui>
<kpartplugin name="sort" library="libsortplugin" version="1">
<MenuBar>
<Menu name="tools"><Text>&Tools</Text>
<Action name="edit_insert_sort"/>
</Menu>
</MenuBar>
<ToolBar name="extraToolBar">
<Action name="edit_insert_sort"/>
</ToolBar>
<ActionProperties>
<Action icon="katesort" name="edit_insert_sort" />
</ActionProperties>
</kpartplugin>
This is done, the only thing left is to get the hook working so kate autoloads
the plugin on start.
--
David C. Rankin, J.D.,P.E.
Darrell,
It just snapped to me as I was following the conversation through a nicely
threaded discussion - Darrell has a new mailer! I see it is kmail and it is
working great. Thanks for the switch. I'm sure you are viewing the messages
threaded, if not look under the 'Folder' menu and there is an option for Message
Threading that will show all messages threaded by conversation on your end.
Looks good, thanks!
--
David C. Rankin, J.D.,P.E.