I am writing a program using GTK+ 2. I'd like to register it with KDE's
session manager, ksmserver, so that it will start up once KDE is
restarted. How should I do that?
Thanks! 20 3093
In article <sl*********************@nospam.com>,
Antoninus Twink <di**********@in.validwrote:
>I am writing a program using GTK+ 2. I'd like to register it with KDE's session manager, ksmserver, so that it will start up once KDE is restarted. How should I do that?
We don't know. If there is a KDE newsgroup or mailing list or web site,
they would probably know there. GTK and KDE and session managers
are not part of the C language, so we don't discuss them here.
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
In article <f8**********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.cawrote:
>In article <sl*********************@nospam.com>, Antoninus Twink <di**********@in.validwrote:
>>I am writing a program using GTK+ 2. I'd like to register it with KDE's session manager, ksmserver, so that it will start up once KDE is restarted. How should I do that?
We don't know. If there is a KDE newsgroup or mailing list or web site, they would probably know there. GTK and KDE and session managers are not part of the C language, so we don't discuss them here.
IOW:
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Useful clc-related links:
-- http://en.wikipedia.org/wiki/Aspergers http://en.wikipedia.org/wiki/Clique http://en.wikipedia.org/wiki/C_programming_language
"Kenny McCormack" <ga*****@xmission.xmission.comwrote in message
news:f8**********@news.xmission.com...
In article <f8**********@canopus.cc.umanitoba.ca>,
Walter Roberson <ro******@ibd.nrc-cnrc.gc.cawrote:
>>In article <sl*********************@nospam.com>, Antoninus Twink <di**********@in.validwrote:
>>>I am writing a program using GTK+ 2. I'd like to register it with KDE's session manager, ksmserver, so that it will start up once KDE is restarted. How should I do that?
We don't know. If there is a KDE newsgroup or mailing list or web site, they would probably know there. GTK and KDE and session managers are not part of the C language, so we don't discuss them here.
IOW:
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Useful clc-related links:
-- http://en.wikipedia.org/wiki/Aspergers http://en.wikipedia.org/wiki/Clique http://en.wikipedia.org/wiki/C_programming_language
Obvious the Knome start-up sequence has got to be off-topic. It doesn't
matter what language you write your programs in, the method for launching
them at startup will be the same. And appropriate to discuss in a Linux
group.
GTK+ - well this needs to be off-topic as well. The reason is that there are
simply too many C libraries for GUIs, signals processing, graphics, etc to
reasonable handle them. If C were a little niche language matters would be
different.
Please don't post this cookie-cutter with Asperger's links to reasonable
off-topic redirections. Just let the thread die or, if you don't like the
tone of the redirection and really must, say you don't like the tone.
--
Free games and programming goodies. http://www.personal.leeds.ac.uk/~bgy1mm
To give more detail: a KDE/QT program when it starts would somehow
communicate with the session manager to arrange for it's state to be
saved and it would be restarted if the session was closed then reopened.
For a GTK+ 2 program, what is the right API to communicate with the
session manager?
In other words, how to turn this psuedocode into actual code?
if(running_under_kde == True) // communicate with session manager
{
provide_sm_with_save_state_callback(ss); // ss is a fnuction pointer
provide_sm_with_load_state_callback(ls); // ls is a fnuction pointer
}
Thanks!
On 28 Jul 2007 at 15:23, Walter Roberson wrote:
Antoninus Twink <di**********@in.validwrote:
>>I am writing a program using GTK+ 2. I'd like to register it with KDE's session manager, ksmserver, so that it will start up once KDE is restarted. How should I do that?
We don't know. If there is a KDE newsgroup or mailing list or web site,
they would probably know there. GTK and KDE and session managers
are not part of the C language, so we don't discuss them here.
In article <sl********************@nospam.invalid>,
Antoninus Twink <sp*****@invalid.comwrote:
>To give more detail: a KDE/QT program when it starts would somehow communicate with the session manager to arrange for it's state to be saved and it would be restarted if the session was closed then reopened.
For a GTK+ 2 program, what is the right API to communicate with the session manager?
In other words, how to turn this psuedocode into actual code?
if(running_under_kde == True) // communicate with session manager {
provide_sm_with_save_state_callback(ss); // ss is a fnuction pointer
provide_sm_with_load_state_callback(ls); // ls is a fnuction pointer }
It's still (and let me be the first of many to point this out):
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Useful clc-related links:
-- http://en.wikipedia.org/wiki/Aspergers http://en.wikipedia.org/wiki/Clique http://en.wikipedia.org/wiki/C_programming_language
Look, what the hell is your problem? I don't have Asberger's, OK.
On 28 Jul 2007 at 18:16, Kenny McCormack wrote:
In article <sl********************@nospam.invalid>,
Antoninus Twink <sp*****@invalid.comwrote:
>>To give more detail: a KDE/QT program when it starts would somehow communicate with the session manager to arrange for it's state to be saved and it would be restarted if the session was closed then reopened.
For a GTK+ 2 program, what is the right API to communicate with the session manager?
In other words, how to turn this psuedocode into actual code?
if(running_under_kde == True) // communicate with session manager { provide_sm_with_save_state_callback(ss); // ss is a fnuction pointer provide_sm_with_load_state_callback(ls); // ls is a fnuction pointer }
It's still (and let me be the first of many to point this out):
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
Useful clc-related links:
Antoninus Twink wrote:
I am writing a program using GTK+ 2. I'd like to register it with KDE's
session manager, ksmserver, so that it will start up once KDE is
restarted. How should I do that?
We can't directly help you since this question is not topical. However try
the following links.
<http://www.linuxheadquarters.com/howto/programming/gtk_examples/index.shtml>
<http://www.yolinux.com/TUTORIALS/GTK+ProgrammingTips.html>
<http://developer.gnome.org/doc/tutorials/gnome-libs/gtk-programming.html>
<http://developer.gnome.org/doc/API/>
<http://linux.omnipotent.net/article.php?article_id=12482&page=2>
< http://www.ibm.com/developerworks/vi....jsp?search_by
=gtk+fundamentals>
Also try these mailing lists:
<http://www.kde.org/mailinglists/>
<http://www.gtk.org/mailinglists.html>
You should also try the groups under <news:comp.os.unix.*and
<news:comp.os.linux.*hierarchies, perhaps like
<news:comp.os.linux.development.apps>
"Antoninus Twink" <sp*****@invalid.comwrote in message
news:sl********************@nospam.invalid...
Look, what the hell is your problem? I don't have Asberger's, OK.
No. Kenny thinks that everyone who tries to enforce topicality has some sort
of personality problem. Apart from that little fobile basically he's a
constructive poster.
Unfortunately he's wrong. Personally I don't know (gnow?) anything about the
Knome GUI, but I'm sure there are some Linux buffs here who do. The problem
is that the newsgroup then becomes comp.everythingrelatedtoprogramming, and
there will be too many posts to read or maintain any sort of community. So
we redirect people to Linux groups. Your question has nothing to do with the
C language as such, and really precious little to do with the fact that your
program is written in C, though there might just be a C API that is a little
different from the facilities offered in other languages. clc isn't the
place for discussing this.
--
Free games and programming goodies. http://www.personal.leeds.ac.uk/~bgy1mm
Malcolm McLean said:
>
"Antoninus Twink" <sp*****@invalid.comwrote in message
news:sl********************@nospam.invalid...
>Look, what the hell is your problem? I don't have Asberger's, OK.
No. Kenny thinks that everyone who tries to enforce topicality has
some sort of personality problem. Apart from that little fobile
basically he's a constructive poster.
Really? You could have fooled me.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
"Malcolm McLean" <re*******@btinternet.comwrites:
"Kenny McCormack" <ga*****@xmission.xmission.comwrote in message
news:f8**********@news.xmission.In...
[the usual crud]
Please don't post this cookie-cutter with Asperger's links to
reasonable off-topic redirections. Just let the thread die or, if you
don't like the tone of the redirection and really must, say you don't
like the tone.
Please don't feed the troll. I suggest simply ignoring him, using a
killfile if necessary. KM is obviously determined to continue
publicliy humiliating himself; helping him to do so is in poor taste.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Antoninus Twink <sp*****@invalid.comwrites:
Look, what the hell is your problem? I don't have Asberger's, OK.
[...]
Kenny McCormack is one of our resident trolls. Please ignore him.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
In article <9q******************************@bt.com>,
Richard Heathfield <rj*@see.sig.invalidwrote:
>Malcolm McLean said:
>> "Antoninus Twink" <sp*****@invalid.comwrote in message news:sl********************@nospam.invalid...
>>Look, what the hell is your problem? I don't have Asberger's, OK.
No. Kenny thinks that everyone who tries to enforce topicality has some sort of personality problem. Apart from that little fobile basically he's a constructive poster.
Really? You could have fooled me.
That's not hard.
"Kenny McCormack" <ga*****@xmission.xmission.comwrote in message
news:f8*********@news.xmission.com...
Finally, let me advise you that you will find that the makeup of this
group can be summarized as:
1) About 6 (or so) hardcores
2) Another 6 (or so) HC sycophants
3) About 3 or 4 contrarians (also known as "trolls") - of which
I count myself a member.
4) An endless supply of newbies (presumably, the category in
which you fall)
Well I give up. I'm clearly not a 4, but which of 1, 2, 3 do I go in?
--
Free games and programming goodies. http://www.personal.leeds.ac.uk/~bgy1mm
Malcolm McLean said:
>
"Kenny McCormack" <ga*****@xmission.xmission.comwrote in message
news:f8*********@news.xmission.com...
>Finally, let me advise you that you will find that the makeup of this group can be summarized as: 1) About 6 (or so) hardcores 2) Another 6 (or so) HC sycophants 3) About 3 or 4 contrarians (also known as "trolls") - of which I count myself a member. 4) An endless supply of newbies (presumably, the category in which you fall)
Well I give up. I'm clearly not a 4, but which of 1, 2, 3 do I go in?
None of the above. Mr McCormack's summary, like most of what he posts,
is incorrect.
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
In article <BO******************************@bt.com>,
Malcolm McLean <re*******@btinternet.comwrote:
> "Kenny McCormack" <ga*****@xmission.xmission.comwrote in message news:f8*********@news.xmission.com...
>Finally, let me advise you that you will find that the makeup of this group can be summarized as: 1) About 6 (or so) hardcores 2) Another 6 (or so) HC sycophants 3) About 3 or 4 contrarians (also known as "trolls") - of which I count myself a member. 4) An endless supply of newbies (presumably, the category in which you fall)
Well I give up. I'm clearly not a 4, but which of 1, 2, 3 do I go in?
Agreed that you're not a 4.
Assuming that you don't subscribe to the lunacy of the hardcores (groups
1 and 2), I think we can accept you as a provisional member of our
group. Welcome aboard!
Based on your postings so far, this looks like a good placement.
Richard Heathfield <rj*@see.sig.invalidwrites:
Malcolm McLean said:
>> "Kenny McCormack" <ga*****@xmission.xmission.comwrote in message news:f8*********@news.xmission.com...
>>Finally, let me advise you that you will find that the makeup of this group can be summarized as: 1) About 6 (or so) hardcores 2) Another 6 (or so) HC sycophants 3) About 3 or 4 contrarians (also known as "trolls") - of which I count myself a member. 4) An endless supply of newbies (presumably, the category in which you fall)
Well I give up. I'm clearly not a 4, but which of 1, 2, 3 do I go in?
None of the above. Mr McCormack's summary, like most of what he posts,
is incorrect.
Which part? It seemed like a reasonable assessment of this NG from where
I am sitting.
ps, Using a "debugger" which, I read in this NG , is unnecessary
"for any competent C programmer".
[snips]
On Sat, 28 Jul 2007 19:23:03 +0000, Kenny McCormack wrote:
Here's the deal. Although you have posted a perfectly reasonable C-related
question
Funny; from here it looked like his questions were about GTK and KDE.
Since these are - as you say - C-related, I'm sure you can show us where,
exactly, the C standard even mentions them.
In article <k6************@spanky.localhost.net>,
Kelsey Bjarnason <kb********@gmail.comwrote:
>[snips]
On Sat, 28 Jul 2007 19:23:03 +0000, Kenny McCormack wrote:
>Here's the deal. Although you have posted a perfectly reasonable C-related question
Funny; from here it looked like his questions were about GTK and KDE. Since these are - as you say - C-related, I'm sure you can show us where, exactly, the C standard even mentions them.
I think this makes you a category 2.
Richard wrote:
Which part? It seemed like a reasonable assessment of this NG from where
I am sitting.
ps, Using a "debugger" which, I read in this NG , is unnecessary
"for any competent C programmer".
Wait you will surely not say that those geniuses of C will
use a "debugger"!!!
That would suppose that they *could* have bugs like everybody else!
OF COURSE NOT!
On Sat, 28 Jul 2007 19:22:08 +0000 (UTC), ro******@ibd.nrc-cnrc.gc.ca
(Walter Roberson) wrote:
<snip topicality>
This is not a newsgroup for programming "whatever can be programmed
in C, assuming implementation extensions to the language and
assuming various system-specific third-party libraries": this is
a newsgroup about the C language -without- system-specific extensions.
If you can't pick up your program and recompile it on (say) IBM MVS
then chances are that the program would not be considered topical here.
Well, if the program is clc-compliant (and doesn't exceed resource
limits) it should work when compiled and run on say MVS. And VMS.
But whether 'you' (the author of said program) has the skills and
resources to do so is a very different matter. For one thing, I don't
_think_ any versions of MVS are licensed on terms most individuals,
especially those posting here, could afford. (Although I think I
recall seeing that some of its most obsolete predecessors, like PCP,
are available for hobbyist use, and as good for verifying portation.)
- formerly david.thompson1 || achar(64) || worldnet.att.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mrbog |
last post by:
Tell me if my assertion is wrong here:
The only way to prevent session hijacking is to NEVER store
authentication information (such as name/password) in the session.
Well, to never authenticate...
|
by: Erik Johnson |
last post by:
There are a lot of things about PHP I was not too keen on and hence why
my company is primarily doing Python these days, but one thing I was quite
impressed with was the ease with which it provided...
|
by: Abhilash.k.m |
last post by:
This is regarding the session management using Out of
proc session management(SQL SERVER). Among the samples
below which one is better to set the session?
1. There are 20 session...
|
by: John A Grandy |
last post by:
for high traffic public websites , what are the proven options for
session-state storage & management ?
is an out-of-process state-server generally preferred over a sql-server ?
what are the...
|
by: James Hunter Ross |
last post by:
We love the ASP.NET "Session" concept and make good use of it. But, getting
close to deployment we find we lose sessions far too often, probably due to
application restarts, etc. We hope to...
|
by: BillE |
last post by:
When a user opens a new IE browser window using File-New-Window the
integrity of an application which relies on session state is COMPLETELY
undermined. Anyone who overlooks the fact that...
|
by: rug |
last post by:
Hello,
I want to use a MySQL Heap table (server load isn't an issue) for session management considering that I use a shared server and don't want anyone who has access to /tmp to be able to read...
|
by: =?Utf-8?B?YW5vb3A=?= |
last post by:
Hello,
I am developing a Simple ASP Application with a Login page. I
want to know how session ID can be generated after User has authenticated
instead of generation along with the Login page...
|
by: knyghtfyre |
last post by:
Hello,
My company is developing a rather large application with .NET 2.0. We
are expanding to a server farm and are in the process of converting
our application to use an out-of-process session...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |