Redshift Plasmoid

Plasma 4 Extensions by simgunz 99 comments

Just to be sure: have you installed redshift in addition to the plasmoid?

Are there inside this directory:
/usr/share/icons/hicolor/scalable/apps/
two icons called: redshift-status-on and redshift-status-off?
If not, there are some icons with redshift in their name?
How they are called? - Feb 09 2012
Redshift Plasmoid

Plasma 4 Extensions by simgunz 99 comments

Try this:
Extract the plasmoid manually. From inside the directory just extracted do:
plasmapkg -i .

Let me know if it works.
Probably is the structure of the plasmoid that is wrong, I'll update soon. - Feb 09 2012
Redshift Plasmoid

Plasma 4 Extensions by simgunz 99 comments

The option -c /dev/null seems to work. I'll implement it. - Feb 07 2012
Redshift Plasmoid

Plasma 4 Extensions by simgunz 99 comments

If I use the -c option I must specifiy a new configuration file, but there is no other specification file, since all the parameters are setted inside the plasmoid. A solution can be to rename redshift.conf -> redshift.conf.bak and notify the user about it.
What do you think about it?

That's a good idea for the activities. The problem is implementing it, infact it needs that the configuration dialog get the list of the activities from the system and load them, but this is impossible to do with kconfigxt and python. So there are two alternatives: rewrite the plasmoid in C++ or use the old way for the creation of the configuration dialog. I'll try to implement it.
- Feb 07 2012
Redshift Plasmoid

Plasma 4 Extensions by simgunz 99 comments

A workaround you can use to use redshift with activities now is this: put the plasmoid on the desktop, then switch to the movie activity and stop the activity where you putted redshift on the desktop. This will stop redshift. It's not that comfortable and the drawback is that you can't put the plasmoid on the panel, but maybe someone can find it useful.
- Feb 07 2012
Redshift Plasmoid

Plasma 4 Extensions by simgunz 99 comments

I chose not read the config file because if you have a plasmoid that can let you configure redshift and can store the configuration, why do you need to create a config file by hand? If you think that this feature is really important I can implement it, but I think that for the average user is unuseful.

I can improve the tooltip. Now it's primary function is to let the user know how to use the plasmoid. Suggest me what can I write in it.

I'm already thinking about activities management, because I red your post in the other page, but I need to figure out a good way to implement it. The point is that it's not a good practice to hardcode the names of the activities in the plasmoid, like "Movie", "Presenation" since in different languages they can assume different names. So I need to add a configuration option to select the activities where redshift should be turned off. I can add a new tab where it is possible to choose the activities of interest, but this make the configuration dialog complex. Any idea? - Feb 07 2012
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

I've forked your plasmoid and I've added some improvements (actually I've changed a lot of code, trying to simplify it). Since I've dropped the support for xflux I preferred to create a new page for that plasmoid. You can find it here http://kde-apps.org/content/show.php?content=148737. - Feb 06 2012
Kup Backup System

System Software by sideshow 225 comments

Adding ADD_DEFINITIONS(-fPIC) in the CMakeLists.txt in the top directory (as suggested by the user 3) I solved the problem. - Dec 09 2011
Kup Backup System

System Software by sideshow 225 comments

I get this error while compiling.

Linking CXX shared module ../lib/kcm_kup.so
/usr/bin/ld: ../lib/libkupsettings.a(kupsettings.o): relocation R_X86_64_32S against `vtable for KupSettings' can not be used when making a shared object; recompile with -fPIC
../lib/libkupsettings.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
- Dec 09 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

At the beginning there are no process (nor active or defunct). When I click the grey icon the program starts and the icon become red. At this point there are an active process and a defunct one. If I click the icon it becomes grey, the program is stopped and there are no active or defunct process at this point. I can repeat the procedure and everything goes in the same way (so there are always only one defunct process while the program is running). - Jul 09 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

Actually I still have problem with the defunct subprocess. - Jul 02 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

I've installed the 0.2.5 version an now xflux works perfetly. Good job! - Jul 02 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

os.wait or os.waitpid maybe can solve this problem. But I haven't found a solution till now.

Another suggestion: do not reimplement the showconfiguration interface. If you comment out this function you'll see a dialog like all the others plasma settings dialog. Then you have just to add a name and an icon to the page that you are adding in createconfigurationinterface. - Jun 27 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

Now it works, but that workaround is not perfect. Infact the icon is still the unknown status icon (the red one) and even in the console output I get unknow status.

It's strange that two xflux process are launched and one of it die even with only one instance of the widget. - Jun 27 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

I notice another bug.
When xflux is running I can't turn it of.

This is the result of ps:

0 Z 1000 18989 18955 0 80 0 - 0 exit pts/1 00:00:00 xflux <defunct>
1 S 1000 18990 1 0 80 0 - 1206 hrtime pts/1 00:00:00 xflux

There are two xflux process, so the command "pidof xflux" return two id, and the plasmoid can't get the status of the program. ("Unknow status" is printed) - Jun 27 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

If you add this line to the metadata.desktop

X-Plasma-NotificationArea=true

it can be possible to put the plasmoid in the system tray (from system tray settings).
I like to put it in the tray. - Jun 25 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

Excuse me, it was just a strange behaviour of plasma, when I open the file pick dialog for installing the plasmoid, I click on the name of the.plasmoid file and plasma install it before I click ok and it doesn't close the dialog. So in this way it doesn't give me a feedback on the installation process.
Then if I reclick on the .plasmoid file plasma says install fail, just because the plasmoid is already installed.

In anycase I get this error:

File "/home/simone/.kde4/share/apps/plasma/plasmoids/plasma_flux/contents/code/plasmaxfluxcfg.py", line 42, in __init__
rgb = values['gamma'].split(':')
AttributeError: 'float' object has no attribute 'split' - Jun 24 2011
Flux / Redshift Plasmoid

Plasma 4 Extensions by diegc 38 comments

Hey,
I was going to write a plasmoid for redshift too. You made me save time!

But pasma fails to install it on kde 4.6.4 on Chakra. - Jun 24 2011