Showing posts with label kde. Show all posts
Showing posts with label kde. Show all posts

Wednesday, 19 March 2014

KDE upgrade on Gentoo: 4.11 to 4.12.3

Recently I have noticed that while many of my kde packages are Upgradable (Blue highlighted "U" in emerge's output), they were not getting upgraded.
After browsing some forums and attempting to explicitly install a kde 4.12.3 package and having it failed, it appears I may have found the solution.

It may seem like a simple solution, but I am using layman to manage all my kde packages so I assumed that when I ran layman -S or layman -f, it would have updated my kde keyword to reflect the latest packages.

This was not the case, so I created this file in the path: /etc/portage/package.accept_keywords/kde-4.12.3 and inside it, placed all the packages the output listed that had dependencies. Since it was a bit of effort to find, copy and paste into the file, I'm listing it here for those interested.

=kde-base/kcmshell-4.12.3 ~amd64
=kde-base/kiconfinder-4.12.3 ~amd64
=kde-base/kwrite-4.12.3 ~amd64
=kde-base/oxygen-icons-4.12.3 ~amd64
=kde-base/khelpcenter-4.12.3 ~amd64
=kde-base/kdnssd-4.12.3 ~amd64
=kde-base/knetattach-4.12.3 ~amd64
=kde-base/kdontchangethehostname-4.12.3 ~amd64
=kde-base/kstart-4.12.3 ~amd64
=kde-base/keditfiletype-4.12.3 ~amd64
=kde-base/kmimetypefinder-4.12.3 ~amd64
=kde-base/kurifilter-plugins-4.12.3 ~amd64
=kde-base/kdepasswd-4.12.3 ~amd64
=kde-base/ktraderclient-4.12.3 ~amd64
=kde-base/kdebase-menu-4.12.3 ~amd64
=kde-base/kdesu-4.12.3 ~amd64
=kde-base/dolphin-4.12.3 ~amd64
=app-office/akonadi-server-1.11.0 ~amd64
=kde-base/nsplugins-4.12.3 ~amd64
=kde-base/kde-base-artwork-4.12.3 ~amd64
=kde-base/kuiserver-4.12.3 ~amd64
=kde-base/svgpart-4.12.3 ~amd64
=kde-base/konsole-4.12.3 ~amd64
=kde-base/kdebase-runtime-meta-4.12.3 ~amd64
=kde-base/kdebase-desktoptheme-4.12.3 ~amd64
=kde-base/katepart-4.12.3-r1 ~amd64
=kde-base/nepomuk-widgets-4.12.3 ~amd64
=kde-base/kquitapp-4.12.3 ~amd64
=kde-base/keditbookmarks-4.12.3 ~amd64
=kde-base/drkonqi-4.12.3 ~amd64
=kde-base/kglobalaccel-4.12.3 ~amd64
=kde-base/kfind-4.12.3 ~amd64
=kde-base/kdebugdialog-4.12.3 ~amd64
=kde-base/kde-env-4.12.3 ~amd64
=kde-base/kfile-4.12.3 ~amd64
=kde-base/ktimezoned-4.12.3 ~amd64
=kde-base/solid-runtime-4.12.3 ~amd64
=kde-base/kwalletd-4.12.3 ~amd64
=kde-base/kdebase-menu-icons-4.12.3 ~amd64
=kde-base/nepomuk-4.12.3 ~amd64
=kde-base/kactivities-4.12.3 ~amd64
=kde-base/kdebase-meta-4.12.3 ~amd64
=kde-base/konq-plugins-4.12.3 ~amd64
=kde-base/kdebase-kioslaves-4.12.3 ~amd64
=kde-base/attica-4.12.3 ~amd64
=kde-base/kdelibs-4.12.3 ~amd64
=kde-base/plasma-runtime-4.12.3 ~amd64
=kde-base/kcontrol-4.12.3 ~amd64
=kde-base/kpasswdserver-4.12.3 ~amd64
=kde-base/kdepimlibs-4.12.3 ~amd64
=kde-base/phonon-kde-4.12.3 ~amd64
=kde-base/kwalletmanager-4.12.3 ~amd64
=kde-base/kfmclient-4.12.3 ~amd64
=kde-base/konqueror-4.12.3 ~amd64
=kde-base/kimgio-4.12.3 ~amd64
=kde-base/nepomuk-core-4.12.3 ~amd64
=kde-base/plasma-apps-4.12.3 ~amd64
=kde-base/kdebase-data-4.12.3 ~amd64
=kde-base/kdialog-4.12.3 ~amd64
=kde-base/renamedlg-plugins-4.12.3 ~amd64
=kde-base/knewstuff-4.12.3 ~amd64
=kde-base/libkonq-4.12.3 ~amd64
=kde-base/kioclient-4.12.3 ~amd64

Now you must know that this will require updating when new packages are released, so this isn't a proper solution. However, since the maintainers at Gentoo and KDE are working on plasma2 and KDE Frameworks 5, it is likely that there will be a proper upgrade path and all that will be required is the deletion of this file and a simple upgrade world.

I don't guarantee anything will work, these are just my thoughts and solutions.

Cheers.

Friday, 19 July 2013

Creating an Android Studio Desktop File for launching on your panel or toolbar in GNU/Linux

I spent a while (read: too much time) trying to get Android Studio launching on my KDE panel via an icon.

The program would not launch, even after editing the studio.sh script so the user wouldn't have to press the key. Since I compiled and installed IcedTea Java 7, it would always warn me before launch. Oracle Java is recommended for running Android Studio, but I take some issue with Oracle as a company, so I would prefer not to use it. Plus, on Gentoo, the package manager requires the manual downloading of oracle's java.bin files because they do not allow Gentoo to carry it in their package repository due to copyright or some crap like that.

Anyway, back to the application launching: even when exporting JAVA_HOME in my .bashrc file (which gets run every login shell), the application would fail to run. The fix for this is to manually add the path to the EXEC= line in the .desktop file. Here is mine as an example:

[Desktop Entry]
Comment=
Exec=JDK_HOME="/usr/lib/jvm/icedtea-7/" /home/celestia/Programs/android-studio/bin/studio.sh
Icon=/home/celestia/Pictures/Icons/android.png
Name=AndroidStudio
NoDisplay=false
Path[$e]=
StartupNotify=true
Terminal=0
TerminalOptions=
Type=Application
X-KDE-SubstituteUID=false
X-KDE-Username=

I used the KDE Menu Editor to generate the template, but regardless of how you create your .desktop file, it's the EXEC line you need.
If your paths are set up system-wide, I doubt there will be any errors when you run studio.sh without the JDK_HOME path.

Hope this helps.
Cheers!