KOSD

Utilities by marcel83 130 comments

I'll see what can be done.

For now, you could try this:
Create two scripts (e.g. BrightUp.sh and BrightDown.sh) and put something like this in them (here for BrightUp.sh):

#!/bin/bash
xbacklight -inc 10
brightness=$(xbacklight -get)
dcop kosd kosd showBrightness $brightness

Test them to make sure they work. Make them executable and put them somewhere you'll find them later.
Now go to Control Center -> Regional and Accessibility -> Input Actions. Add new actions for BrightUp/Down and select type Command/URL. Set your keys in the 'Keyboard Shortcut' tab and select the correct scripts in the 'Command/URL Settings' tab.

That's it. Let us know if it works. - May 26 2008
KOSD

Utilities by marcel83 130 comments

Hi.
Start with a fresh archive extract and run 'make -f Makefile.cvs'. Then proceed as usual. That should help. - May 26 2008
KOSD

Utilities by marcel83 130 comments

Check out KOSD 0.1.2 :-) - May 26 2008
KOSD

Utilities by marcel83 130 comments

Have you gotten it to work already?
Frankly, I have no idea what could be going wrong here. - May 24 2008
KOSD

Utilities by marcel83 130 comments

Hi.
I'll see how xbacklight support can be best implemented. I have just two questions (for now). You say you cannot change the brightness through acpi, but can you read the actual brightness from anywhere when all required modules are loaded? Also, what kind of system do you have (which manufacturer)?
Thanks - May 23 2008
KOSD

Utilities by marcel83 130 comments

Hi.
I can't tell for sure, but it could be that some other application already reacts to those events (with KDE's shortcut system it isn't possible for two or more applications to react to the same event). In that case KOSD never will know about them.
What buttons are concerned exactly? - May 23 2008
KOSD

Utilities by marcel83 130 comments

The only other OSD I know of is KMilo. I suppose that's what's running on your system. If that's the case, you can disable it in the KDE Control Center (under KDE Components -> Services). - May 22 2008
KOSD

Utilities by marcel83 130 comments

It was a bug in the configuration dialog. I've just uploaded 0.1.1. Try that instead. - May 22 2008
KOSD

Utilities by marcel83 130 comments

Hi.
It's not really a clone, but rather the successor of KVolumeOSD. I just thought I should rename it to reflect the fact that it now supports more than just volume buttons. - May 22 2008
KOSD

Utilities by marcel83 130 comments

Hi.
First of all you have to make sure that your multimedia buttons actually trigger some sort of XF86* event. Use xev to test that. If they don't trigger any events, you'll need to set up an .Xmodmap file. There are many instructions on how to do this on the web. Lastly, once your buttons work, click on the "Configure shortcuts" button in the KOSD configuration dialog and make sure your keys are assigned correctly.
Hope that helps. - May 22 2008
KGmailNotifier

Email by marcel83 148 comments

Hi.

You are right. I already included these in some other source files (and interestingly that sufficed to compile cleanly on g++ 4.3 as I tested) but not in all. I'll fix that and test it more thoroughly.

Thanks for the hint.

P.S.
As we're talking about C++ code here, you should use includes such as <cstdlib> rather than <stdlib.h> :-) - May 21 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

The exact procedure may depend on your distribution. You'll need to create a .Xmodmap file and load it on startup.
See http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys for example. - May 21 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

I will of course port it to KDE4 once I have made the switch myself.

Although I have written a few small apps for KDE I'd still consider myself mainly a KDE user. And since KDE 4.0.x isn't actually intended for users I don't really see any reason for switching now already.

Besides, KVolumeOSD is a fairly simple app (I hacked it together in a few hours) so porting it to KDE4 probably won't take too much time:-) - May 16 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

I'm afraid I don't yet quite understand the problem. You first say KMix shows the wrong icons and later you write the icon in KMix is correct but the icon in KVolumeOSD is wrong. Could you clarify this a bit?

So far this sounds like a timing problem to me. But I can't tell for sure before I'm sure I understand what exactly happens on your system.

Thanks. - May 16 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

Hi.
You need to have the KDE and Qt development files installed. Most distributions provide those as separate packages. Look for something like KDE-devel in your package manager.
Hope that helps. - May 10 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

I think it's a problem with shadows. Try going to the window decoration settings in ccsm and add !(name=kvolumeosd) to the "Shadow windows" field. Works for me. - May 06 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

Never mind. I just tested KVolumeOSD under Compiz myself with different plugins enabled and did not get any sort of distortion. It must be some specific setting that causes the corruption for you. - May 06 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

I see on your screenshot that you have Amarok running. Does Amarok's OSD also show this corruption under Compiz? - May 06 2008
KVolumeOSD

Audio Apps by marcel83 20 comments

Have you configured your volume buttons correctly? Try running 'xev' to test it. Your volume buttons must yield correct XF86Volume* events. - May 06 2008
KGmailNotifier

Email by marcel83 148 comments

Thanks for the note. I've fixed it for the next release. - Feb 25 2008
KGmailNotifier

Email by marcel83 148 comments

I'm afraid you will have to wait for KGmailNotifier 0.5 for a KDE4 port:-)

Anyway, that's next on my todo list once the last bugs for 0.4.0 are fixed. I'm hoping to be able to release at least a first beta in time for KDE 4.1.

Greetings. - Feb 24 2008
KGmailNotifier

Email by marcel83 148 comments

Actually, I found this quite annoying, too and I've already changed this for 0.4. There won't be any popup for errors anymore. I'll release a beta for 0.4 soon. - Feb 04 2008
KGmailNotifier

Email by marcel83 148 comments

Hi.

To 1: Good idea. I just changed that.
To 2: This is already implemented for the coming 0.4 version.
To 3: That isn't hard to implement so I guess I could add that as an option to 0.4 too.

Thank you very much for your input.
Best regards. - Nov 04 2007
KMyFirewall

Security by theanimal666 38 comments

Ok. I managed to fix this myself although I would consider it a hack.

I edited the kmfruleoption_protocol_option.xml and added the '-p tcp' and '-p udp' options to the "command"-attributes of the tcp_multiport_opt and udp_multiport_opt definitions. So it looks like this (for tcp as example):

<ruleoptiondefinition name="tcp_multiport_opt" guiName="TCP Multiport">
<option guiName="" command="-p tcp --match multiport" />
...

Still it would be nice if this could be fixed for a next release.

Best regards. - Oct 31 2007
KMyFirewall

Security by theanimal666 38 comments

Hi.

When I try to start my firewall with smb accepted I get this error:

Clearing iptables (created by KMyFirewall)... Done.
Starting iptables (created by KMyFirewall)...
Loading needed modules... Done.
Create custom chains... Done.
Settup Rules in Table FILTER:
Create Rules for Chain: INPUT
Error: iptables v1.3.8: multiport needs `-p tcp', `-p udp', `-p udplite', `-p sctp' or `-p dccp'
Error: Try `iptables -h' or 'iptables --help' for more information.
Setting up Rule: SMB_tcp FAILED!

Execution failed
Exit(Code): 1

Does anyone else have this problem? Is there any way to fix it?

The only "solution" I've found so far is to install the firewall anyway and then manually fix the affected line in the /etc/kmyfirewall/kmyfirewall.sh script myself.

I already posted this at the forum at Sourceforge but as it doesn't seem to be very active I'm trying it here.

Thanks in advance. - Oct 30 2007
KGmailNotifier

Email by marcel83 148 comments

Hi,

unfortunately Pythons proxy support is rather limited. You can try exporting some environment variables before running KGmailNotifier (I've described how in an older post). But this only works on proxies without authentication.

I'm planing to rewrite the part used for connecting to Gmail using KDE's own http libraries. This should make KGmailNotifier work through proxies too. However I can't tell yet when I'll be finished with that.
So as usual: Please be patient:-) - Jul 21 2007
KGmailNotifier

Email by marcel83 148 comments

Hi,
Sorry about that. I'm going to release KGmailNotifier 0.3.1 soon, which should fix that bug. - Jun 20 2007
KGmailNotifier

Email by marcel83 148 comments

Sorry about the rather harsh comment before (I was a bit in a bad mood the other day, unrelated to KGmailNotifier or your post:-). But I think you can understand how frustrating this kind of bug is, especially since I can't reproduce it myself.

What I really would like to know is what version of KGmailNotifier you are using. I changed the main function slightly between beta1 and beta2, following a tip I found at the PyQt mailing list, which was supposed to eliminate such crashes. If it's beta2 that crashes on you, then that tip was probably worthless.

Anyway, as I said in the last post, if you (that is, anyone who reads this) have any PyKDE/PyQt/Python skills, PLEASE look at the code and help me find the cause of this (if it's a bug in the code after all) or at least some ultimate workaround.

Thanks. - May 11 2007
KGmailNotifier

Email by marcel83 148 comments

What version of KGmailNotifier are you using? What distribution? What version of Python?

You once mentioned you're using Kubuntu Feisty. Is that still the case? I've tested on Feisty and didn't get any crash myself.

I think however that the crash *may* have something to do with the fact that PyKDE 3.16 actually is older than Python 2.5.1 (and about same old as Python 2.5) and therefore probably hasn't been tested with these newer versions.

Frankly, I think using PyKDE 3.16 with Python 2.5 is a bad idea. Also, if this is a bug with Python/PyKDE/PyQt (which I suspect), I really don't feel like coming up with workarounds for different combinations of the three all the time. Therefore, I won't be investigating this matter any further myself, until and unless the next version of PyKDE is released and still causes this crash.

However, I invite anyone with knowledge in Python/PyKDE/PyQt programming to check the code and prove me wrong. If you find something in the KGmailNotifier code itself that causes this crash, tell me and I'll happily admit my mistake.

Thanks. - May 09 2007
KGmailNotifier

Email by marcel83 148 comments

If your proxy requires authentication, then there isn't much that can be done at the moment. If it doesn't it might work by doing this (on the shell):

$ http_proxy="http://www.someproxy.com:3128"
$ export http_proxy
$ python /path/to/kgmailnotifier.py

You might want to put this in a start script.

Note: I haven't tested this myself (as I have no proxy). I took this from the official python documentation.

Read here for more:
http://docs.python.org/lib/module-urllib.html

Let me know if it works. - May 01 2007
KGmailNotifier

Email by marcel83 148 comments

A quick update:

I think I've found the cause for this crash. It seems that with some combinations of Python/PyQt/PyKDE Python's garbage collector doesn't destroy the configuration dialog and systemtray icon correctly. This could be because they don't have any real parent widgets, I'm not quite sure about that, though. Anyway, by manually deleting these in the Quit() function the crash seems to disappear. However, I still want to test this with some different distributions.

i18n support is also finished and I'm still working on some smaller improvements. I'll be releasing KGmailNotifier-0.3.0-beta for testing soon. Please be patient.

Thanks. - Apr 27 2007
KGmailNotifier

Email by marcel83 148 comments

Hi.

It would be great if you could check the code. Btw ahri's backtrace shows he's using Python 2.5. What version do you have? It doesn't crash for me with PyKDE 3.16.0 and Python 2.4.
Thanks for your help. - Apr 24 2007
KGmailNotifier

Email by marcel83 148 comments

Then it's worse than I thought:-)
It works without problems on my own Gentoo system. I've seen in your backtrace that you're using Python 2.5, though. I've still got 2.4 here. I'll try to upgrade mine to 2.5 and see what happens. Anyways, I'm working on it. Please be patient on this. - Apr 24 2007
KGmailNotifier

Email by marcel83 148 comments

This bug is giving me a headache. I've already added some workarounds for older (and buggier) PyKDE versions but it seems there are still some versions that don't work. I'll keep investigating this issue. For now I can only recommend updating PyKDE to the latest version (3.16.0) which doesn't cause this crash.

Please note:
PyKDE-3.5.6 is NOT the latest version! It's just a bad habit of distribution packagers to name it according to the current KDE version. However, in many (if not most) cases packages like PyKDE-3.5.6 are grossly out-of-date! - Apr 24 2007
KGmailNotifier

Email by marcel83 148 comments

Quote:All I need to reproduce this problem is unplugging my network cable and selecting option "check mail now".
OK. That explains it. There's no connection but your network system is still running and doesn't know about it. I'll see if I can build in some timeout function for such cases. Thanks. - Apr 07 2007
KGmailNotifier

Email by marcel83 148 comments

Hi.

To 1: Personally I don't like having numbers on my systray (just a matter of taste, I guess), but I agree that it would be useful. I'll add this as an option.

To 2: This does sound reasonable. On the other hand I've been thinking it would be better to make the popup work in a way that clicking the tray icon would just reset the timer (before closing) instead of reopening it with animation. This would be useful if you didn't have time to read sender and subject since you could make it stay up longer. Anyway, I'll think about it (again as an option).

To 3: I'm not sure yet what approach would be best for translations. The KDE i18n system only seems to work on apps that are installed system wide. However I'd like to keep this app installable anywhere (in a single dir, that is) so you can just extract and run. I still have to think about how to implement this. I'll gladly accept your translations once KGmailNotifier is ready to use them:-)

To 4: I never had this problem myself, but I suppose this would happen when the Gmail server is actually reachable but retrieving the atom takes way too long (for what reason ever). If it can not connect at all you would get a "Connection failed!" immediately. Not sure what can be done about this, but I'll think about it.

Thanks for your feedback. - Apr 07 2007
KGmailNotifier

Email by marcel83 148 comments

Not at all actually. KGmailNotifier is really just a simple atom reader. Cookies aren't needed for this. - Apr 06 2007
KGmailNotifier

Email by marcel83 148 comments

Why should a *notifier* take care of such stuff? As I have said on previous posts, I'm not going to bloat KGmailNotifier with features that have nothing to do with actual *notification*. If you really need a tool that can handle all your email related tasks, you should rather stick with CheckGmail. KGmailNotifier isn't meant as a replacement for (K)CheckGmail but as an alternative for people (such as myself) who want a light-weight notifier and don't need and don't want a tool filled with all kinds of features they never use. Please don't get me wrong here, I think your idea is a good one and I really appreciate your input, but it's just not what I had in mind for this app.
Sorry. - Apr 05 2007
KGmailNotifier

Email by marcel83 148 comments

Hm... What's wrong with the kde-apps server? My comment was posted three times...:-) - Apr 05 2007
KGmailNotifier

Email by marcel83 148 comments

Python apps don't support session management afaik. So you'll need to start it manually. Try this:

- Go to your autostart folder (~/.kde/Autostart)

- Create a new text file, give it a name (e.g. start-kgmailnotifier) and write something like this in it:

#!/bin/bash
cd /path/to/KGmailNotifier
python kgmailnotifier.py

- Save the file and make it executable (right-click->Properties->Permissions)

Now it should start automatically. - Apr 05 2007
KGmailNotifier

Email by marcel83 148 comments

Python apps don't support session management afaik. So you'll need to start it manually. Try this:

- Go to your autostart folder (~/.kde/Autostart)

- Create a new text file, give it a name (e.g. start-kgmailnotifier) and write something like this in it:

#!/bin/bash
cd /path/to/KGmailNotifier
python kgmailnotifier.py

- Save the file and make it executable (right-click->Properties->Permissions)

Now it should start automatically. - Apr 05 2007
KGmailNotifier

Email by marcel83 148 comments

Python apps don't support session management afaik. So you'll need to start it manually. Try this:

- Go to your autostart folder (~/.kde/Autostart)

- Create a new text file, give it a name (e.g. start-kgmailnotifier) and write something like this in it:

#!/bin/bash
cd /path/to/KGmailNotifier
python kgmailnotifier.py

- Save the file and make it executable (right-click->Properties->Permissions)

Now it should start automatically. - Apr 05 2007
KGmailNotifier

Email by marcel83 148 comments

As I already mentioned in an other post, KGmailNotifier is *A NOTIFIER*. Nothing more. I'm not planing to turn this into a mail reader, organizer, ....
However, if you really need such a feature you can just use a normal rss/atom-reader (Akregator works great for that and you can also use it to manage multiple accounts).
Sorry. - Apr 03 2007
KGmailNotifier

Email by marcel83 148 comments

Good idea. I'll add that. Thanks. - Apr 03 2007
KGmailNotifier

Email by marcel83 148 comments

Unfortunately many distributions come with outdated PyKDE versions. So you have two possibilities here:
1. (Recommended) Update PyKDE/PyQt
2. (Not recommended) Comment out that line in kgmailnotifier.py (put a # at the beginning).

This function isn't really important, it's just used to get a nice logo in the about dialog. However, for some reason kgmailnotifier crashes when you quit without it (at least it does for me, I'll try to find out why). Anyway, if you can't update your PyKDE/PyQt you should probably try it.

Sorry about that. - Apr 01 2007
KGmailNotifier

Email by marcel83 148 comments

I looked at the atom feed (in xml) provided by gmail, however it doesn't contain any information about mail *not* in the inbox. The firefox extensions you mentioned must use some different approach. I'm afraid I can't provide the feature you requested myself (at least for now). In case someone else manages to implement such a thing in kgmailnotifier I'll of course gladly try to merge it in to a next release. Just let me know.
Sorry:-( - Mar 30 2007
KGmailNotifier

Email by marcel83 148 comments

Quote: Does this applet notify me when i get a new message in my inbox?

Yep. That's just what it's meant for. However it won't show any information other than author and subject of the email. So it doesn't really do anything kcheckgmail doesn't.

Also I'm not planning on changing this because I really want this to be a *notifier*, not a blown up mail reader/organizer/...

Anyway, just try it and see if it suits you. Thanks. - Mar 30 2007
KGmailNotifier

Email by marcel83 148 comments

That shouldn't be too difficult. I'll add it to my todo list. But don't expect this too soon. I want to redo the configuration dialog first before I add new features (to avoid a mess). Thanks. - Mar 29 2007
KGmailNotifier

Email by marcel83 148 comments

This might be difficult. Apparently gmail doesn't provide such a feature in its atom feed. Does anyone know more about this?
Besides, why would you want a *notifier* to show archived mail (just curious)? - Mar 29 2007
KGmailNotifier

Email by marcel83 148 comments

Hm... Only checking the inbox actually was the idea. I have a lot of unread mail which I just archive for reading later if I need to. However I can add an option, so the user can chose what mailbox should be checked. Please be patient :-) - Mar 29 2007