Komics

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

Komics is a panel applet for KDE Desktop Environment. It is useful to get comics strips from internet: it warns you when strips are ready, opens them automatically and stores them on the disk if you wish.
Last changelog:

15 years ago

1.4:
Minor bugfixes. Strips can be removed from fetch list without being dropped
from configuration panel (see "activated" option). Some new strips (Simon Vermeersch) added.

1.3:
Added support for HTTP Referrer header. KDE proxy settings are automatically
used when retrieving strips. When saving a strip the date numbers are padded
with leading zeroes (Oleg Kourapov). The application can be loaded in the system tray
(running the "komics" executable).

1.2:
Added support for multiple downloads for each strip. Added a simple DCOP interface. Added new scripts. Little UI enhancements were made.

1.1:
Little bugfixes. Added a "Autodownload when ready" and a "Play sound when ready" options. Added a new script.

1.0:
Left-click on the icon now stops processing. Icons for all kicker sizes were added. APPLY Button was added to configuration dialog. Other scripts were added. Right-click menu is shown "aligned" to kicker. A directory for configuration storing now is automatically created in ~/.kde if doesn't exists. Added a default configuration.

1.0rc2:
Some bugfixes on icon handling were made, and 2 new scripts were added (foxtrot.pl and userfrienly.pl - by Chris Quilley). Strips are singulary selectable through a right-click menu.

1.0rc1:
first release

markusk21

12 years ago

I have komics version 1.4 installed on my gentoo-mashine.
When I left-klick and choose a comic, komics seems to load or something. But nothing more happens.
In the strips configuration are always Strip name and Strip URL set. But nothing more. Execute, Save as and Referrer are empty. Is that correct?

Report

lengau

13 years ago

hi,

The main download for this is down, but you can still get it at

http://www.linuxsoft.cz/en/redirect.php?id_ldownload=11281

Alex

Report

bugi

15 years ago

If downloading Dilbert scripts don't work for you try finding dilbert.pl script(on my installation it's in /usr/share/apps/komics/). Next, change 'Today\'s Dilbert Comic' to 'Today\'s Comic'.
You could also use following patch while installing komics:

--- src/scripts/dilbert.pl.orig 2005-02-02 14:01:25.964429648 +0100
+++ src/scripts/dilbert.pl 2005-02-02 14:02:55.788901068 +0100
@@ -5,7 +5,7 @@

our $url = 'http://www.dilbert.com';
our $prefix = 'http://www.dilbert.com';
-our $attr_value = 'Today\'s Dilbert Comic';
+our $attr_value = 'Today\'s Comic';
our $attr_name = 'alt';
our $regex = '';

Report

devriesz

15 years ago

For people who like Fokke & Sukke )Dutch cartoon):

#! /bin/bash
regexp='.*\(imggif.php?i=/upload/d[0-9]\{1,4\}.gif\).*'
main_url="http://www.foksuk.nl/"
img_url=$(wget -qO - $main_url | sed -n "s@$regexp@$main_url\1@p")
imgname=~/Cartoon_van_de_dag.gif
wget -qO $imgname "$img_url"
echo -n "$imgname" # outputs the path to the comic image, that will be enough for comics

*credits go to Aru (mandrakeusers.org) who has a solution for every problem :)*

Report

devriesz

15 years ago

Hi, I made a script to download the Dutch comic Fokke & Sukke

#!/usr/bin/perl

use strict;
use warnings;

our $url = 'http://www.foksuk.nl';
our $prefix = 'http://www.foksuk.nl/';
our $attr_value = '';
our $attr_name = '';
our $regex = 'd\d+\.(gif|jpg)';

$0=~m|^(.*/).*?$|;
require $1.'komics.pm';

It works, the comic is downloaded to /tmp/kde-xxxx/ but then is given the extension php instead of gif. (url=http://www.foksuk.nl/imggif.php?i=/upload/d686.gif file=komics1aFwAeb.php) So I guess komics looks till imggif.php and not further when it places the file in /tmp/kde-xxxx.

Kuickshow, the app I use to view, doesn't do php. Kview does, but not in komics.

Thanks for your time :)


Report

devriesz

15 years ago

Works great (after removing ; and applying the patch :) )

For people who like the Dutch comic Dirk Jan, use this script:

#! /bin/bash
url="http://www.rotterdamsdagblad.nl/dirkjan/"
ar_day=(zaterdag maandag dinsdag woensdag donderdag vrijdag zaterdag)
printf "${url}${ar_day[$(date +'%w')]}.jpg\n"

*Made possible with help from Papaschtroumpf and Aru*

Report

troycarpenter

15 years ago

After removing the ";" as indicated in the above message, I noticed a few other probelems while using this application.

1. The Activated flag partially works...When clicking on the icon to download all active comics, it works fine downloading only the active comics. However, when you right-click to get the individual list of comics, the corresponding comic in the master list is downloaded regardless of what your smaller list says.

For instance, if you deactivate a number of comics, and you want to individually download the comic that is third in your list, you will get "Calvin and Hobbes" instead, since it is third in the master list.

2. When running komics in the system-tray, clicking on the icon doesn't work, and this error is spit out:
QButton::setState() / setOn: (unnamed) Only toggle buttons may be switched

The only way to get comics when in systray operation is to download them individually...now see problem #1.

Report

anonymous-hive

15 years ago

well, for the problem with choosing a strip from context menu, here is a patch:
http://bugi.j.com.pl/komics-1.4-RightClickMenu.patch

Report

bugi

15 years ago

well, for the problem with choosing a strip from context menu, here is a patch:
http://bugi.j.com.pl/komics-1.4-RightClickMenu.patch

Report

eric

15 years ago

I've had to change src/komics.h to make it (version 1.4) build with gcc-3.4.2:
remove the last ';' on line 32.

Report

somekool

15 years ago

mine compile fine, using gentoo, i can run it either as a kicker applet or a kicker system icon. but it show a question mark, and I can't get to show an actual comic.

well, do i miss anything ?

Report

psch

15 years ago

I get the same fenomenon.
Compiled fine on my SuSE 9.1/KDE 3.3.1,
but am unable to use it !

When I select a comics in the list, I see the clock icon for a fraction of a second appearing, an then getting back to the question mark.

I'm just unable to view any comics... ;(

GreetZ,
Phil

Report

C

domine

15 years ago

Please check if Perl scripts run fine.. You can do that by executing them in a terminal (they're installed in $KDEPATH/share/apps/komics). If a script shows an error message, you found the trouble :)

Report

psch

15 years ago

Yesterday I reinstalled a few KDEGraphic rpm's and also updated some perl libraries. Then suddenly tons of komics poped up on my screen :)

So seemed to be solved now :)

Report

zho40

15 years ago

When I run perl ziggy.pl I get:
Use of uninitialized value in concatenation (.) or string at ziggy.pl line 13.

Any ideas?

Report

C

domine

15 years ago

Try deleting these lines from the script:

use strict;
use warnings;

Report

prjanique

15 years ago

stripdialogview.cpp: In method `void StripDialogView::modifyCriteria()':
stripdialogview.cpp:406: ambiguous overload for `bool ? const char[2] : QString'
stripdialogview.cpp:406: candidates are: operator ?:(bool, QString, QString)
stripdialogview.cpp:406: operator ?:(bool, const char *, constchar *)
make[3]: *** [stripdialogview.lo] Error 1
make[3]: Leaving directory `/home/jinjiru/Personal_Files/komics/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jinjiru/Personal_Files/komics/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jinjiru/Personal_Files/komics'
make: *** [all] Error 2

Report

C

domine

15 years ago

Try substituting the line 406

criteria->setText( 2, (dayName <= 0 ? "*" : QDate::longDayName(dayName) ) );

with

criteria->setText( 2, (dayName <= 0 ? QString("*") : QDate::longDayName(dayName) ) );

What GCC version do you use? What linux distribution?

Report

MDonoughe

15 years ago

Make fails with the message:"
cd . && /bin/sh ~/komics/admin/missing --run autoheader
Can't locate object method "path" via package "Request" at /usr/share/autoconf/Autom4te/C4che.pm line 69, line 112.
autoheader-2.58: /usr/bin/autom4te failed with exit status: 1
make: *** [config.h.in] Error 1
"if you have Gnu Autoconf 2.58. Upgrading to 2.59 fixes it.

Report

laktose

15 years ago

nevermind.
removing autom4te.cache fixes it also.

Report

laktose

15 years ago

I have this same problem on Mandrake 10.
I cannot get it to compile under any circumstances.

Report

C

domine

15 years ago

Some people using Fedora reported this problem... please try to upgrade/downgrade your autoconf/automake packages; versions I have on my system are:

autoconf 2.57
automake 1.7.7
libtool 1.4.3
m4 1.4
make 3.80

If someone makes an RPM package I will upload it, of course :-)

Report

C

domine

15 years ago

Ops.. before that, first try to launch in the komics/ directory the command

make -f Makefile.cvs

and then "./configure ..."

Report

Yaba

15 years ago

An option to enable/disable strips instead of removing them, would be cool. Then you can disable a strip temporarily but easliy enable it again at a later time.

Report

brockers

15 years ago

Yes I agree. Komics is a great program that I already use everday, but it would be really nice to be able to select which komics to download without removing or manually changing the download times. Something like a simple checkbox next to the comic list.

Report

15 years ago

1.4:
Minor bugfixes. Strips can be removed from fetch list without being dropped
from configuration panel (see "activated" option). Some new strips (Simon Vermeersch) added.

1.3:
Added support for HTTP Referrer header. KDE proxy settings are automatically
used when retrieving strips. When saving a strip the date numbers are padded
with leading zeroes (Oleg Kourapov). The application can be loaded in the system tray
(running the "komics" executable).

1.2:
Added support for multiple downloads for each strip. Added a simple DCOP interface. Added new scripts. Little UI enhancements were made.

1.1:
Little bugfixes. Added a "Autodownload when ready" and a "Play sound when ready" options. Added a new script.

1.0:
Left-click on the icon now stops processing. Icons for all kicker sizes were added. APPLY Button was added to configuration dialog. Other scripts were added. Right-click menu is shown "aligned" to kicker. A directory for configuration storing now is automatically created in ~/.kde if doesn't exists. Added a default configuration.

1.0rc2:
Some bugfixes on icon handling were made, and 2 new scripts were added (foxtrot.pl and userfrienly.pl - by Chris Quilley). Strips are singulary selectable through a right-click menu.

1.0rc1:
first release

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4
updated Oct 12 2004
added Nov 23 2003
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0