sunflower-fm on Salix OS LXDE 13.37

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

sunflower-fm on Salix OS LXDE 13.37

Post by globetrotterdk »

I would like to install sunflower-fm on my Salix OS LXDE 13.37 system. Unfortunately, it depends on the following packages, none of which I have been able to find:
python-gtk2 (>= 2.15.0),
python-vte (>= 0.20.0),
python-notify (>= 0.1)
More information about sunflower-fm here:
http://code.google.com/p/sunflower-fm/
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: sunflower-fm on Salix OS LXDE 13.37

Post by gapan »

Did you actually try to install sunflower-fm, or are you just guessing that you don't have those dependencies already? The names you provide are probably what these packages are called in debian/ubuntu. Don't expect the names to be exactly the same in every distribution not based on those. These are the pygtk, vte and notify-python packages in salix and you should already have them installed.
Image
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: sunflower-fm on Salix OS LXDE 13.37

Post by globetrotterdk »

gapan wrote:Did you actually try to install sunflower-fm, or are you just guessing that you don't have those dependencies already? The names you provide are probably what these packages are called in debian/ubuntu. Don't expect the names to be exactly the same in every distribution not based on those. These are the pygtk, vte and notify-python packages in salix and you should already have them installed.
Many thanks for the info gapan. The packages are installed as you have mentioned. To answer your question, no I didn't guess. I read the depends file in the .tgz package. I expected the references in the depends file to more or less match, as I assume this is a Slackware package.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: sunflower-fm on Salix OS LXDE 13.37

Post by globetrotterdk »

I tried installing the package, but I got the following error:

Code: Select all

# spkg -i Sunflower-0.1a-36.tgz
ERROR: Package name is invalid. (Sunflower-0.1a-36.tgz)
ERROR: Package installation failed!
I copy pasted the name from "properties" to make sure that the name was exact.
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: sunflower-fm on Salix OS LXDE 13.37

Post by gapan »

Are you sure that is an actual slackware package and not just a tarball? If it is a slackware package, it doesn't have the correct name and whoever created it, probably is not that knowledgeable about slackware packaging.
Image
Image
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: sunflower-fm on Salix OS LXDE 13.37

Post by mimosa »

I downloaded and unpacked it, and ran it from inside the directory:

Code: Select all

cd Sunflower
./sunflower.py
That is, it doesn't seem to expect to be installed as such. You could put a symlink to the script somewhere in your $PATH, or maybe make a launcher shortcut directly to it, depending on your desktop environment.

It looks rather like Midnight Commander ...
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: sunflower-fm on Salix OS LXDE 13.37

Post by globetrotterdk »

Thanks for the info. I have created a .desktop file for Sunflower in /usr/share/applications and copied the icon file to /usr/share/pixmaps/ but I am not really sure where to place the Sunflower directory. The directory is at this time in my Downloads folder, but there must be some sort of conventions as to where to place this kind of directory in Salix. What do you suggest?
Military justice is to justice what military music is to music. - Groucho Marx
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: sunflower-fm on Salix OS LXDE 13.37

Post by mimosa »

I'd suggest moving the whole lot to /usr/local, and putting a symlink to the script in /usr/local/bin; but I'm not sure if that's correct according to convention. Anyway, you probably don't want to leave it where it is. You may also need to adjust permissions after the move.
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: sunflower-fm on Salix OS LXDE 13.37

Post by Shador »

You can add "$HOME/bin" to your PATH in .profile and create a symlink in $HOME/bin. Then add the menuentry to .local/share/applications/. That's the per-user way. On a system-level you could do it like mimosa pointed out, but you should make sure all files are owned by root (perms usually don't need to be changed but you could check) and you should move the whole directory to /usr/local/share/. But that's just convention anyway.
Image
User avatar
globetrotterdk
Posts: 435
Joined: 26. Oct 2010, 13:57
Location: Denmark

Re: sunflower-fm on Salix OS LXDE 13.37

Post by globetrotterdk »

Thanks for the replies. I was thinking about moving the directory to either /opt/ or /usr/share/ as that looks like where everything else seems to be. I don't have a .profile file or a .local/share/applications/ directory on my system.

Latest actions:
I have now run the following:

Code: Select all

# cp /etc/profile /home/user/.profile
Last edited by globetrotterdk on 24. Jan 2012, 12:20, edited 2 times in total.
Military justice is to justice what military music is to music. - Groucho Marx
Post Reply