WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Xfce4 and TC integration  (Read 3949 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Xfce4 and TC integration
« on: November 02, 2009, 01:05:46 AM »
I wrote a small (5K) C program, tc2freedesktop which creates freedesktop.org compatible menus in /usr/local/share/applications based on WBAR entries in /usr/local/tce.icons for Xfce4 or other compatible desktops. This means that applications with WBAR entry will be visible in Xfce4 menu system also without extra adaptation. If they provide a proper menu by default it will be used. It doesn't overwrite nor delete existing entries.

As TC entries do not have category, programs are placed to the same category, System. On Xfce4 add it to 'Application Autostart' list in 'Session and Startup' setting menu.

tc2freedesktop.tcz posted for submission.

Cooments are appreciated.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline clach04

  • Newbie
  • *
  • Posts: 31
Re: Xfce4 and TC integration
« Reply #1 on: November 02, 2009, 02:02:07 AM »
Not sure when I'll get around to testing but the idea is great, freedesktop menu support in only 5Kb is very nice.

Thanks for working on this!

Offline Kingdomcome

  • Sr. Member
  • ****
  • Posts: 286
Re: Xfce4 and TC integration
« Reply #2 on: November 02, 2009, 09:53:13 AM »
I think this would be a great addition to the xfce extension, bmarkus. Thanks for the effort. Did you look at trying to convert the entries in /usr/local/tce.menu which were intended to be placed in the menu and possibly have categories?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Xfce4 and TC integration
« Reply #3 on: November 02, 2009, 10:07:32 AM »
I think this would be a great addition to the xfce extension, bmarkus. Thanks for the effort. Did you look at trying to convert the entries in /usr/local/tce.menu which were intended to be placed in the menu and possibly have categories?

/usr/local/tce.menu entries have only name and path to the executable, while /usr/local/tce.icons additionally have a .png icon, therefore I use /usr/local/tce.icons/<application> file to convert. There are no categories in these entries unfortunately.

If you want to have categories, use freedesktop.org compatible .desktop menu. SInce I have Xfce4 ported to TC I add .desktop file to my new or updated extensions. I

It is a kind request to all extension creators to do the same  :)
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Xfce4 and TC integration
« Reply #4 on: November 06, 2009, 04:07:12 PM »
Could you post the source?
The only barriers that can stop you are the ones you create yourself.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Xfce4 and TC integration
« Reply #5 on: November 06, 2009, 05:52:32 PM »
Could you post the source?


It was sent to Jason already. I have not checked the ftp server but I think he will put it there.

You can dowload also from here: http://tc.hasix.org/src_tc2freedesktop.zip
« Last Edit: November 06, 2009, 05:55:17 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Xfce4 and TC integration
« Reply #6 on: November 07, 2009, 04:20:58 AM »
Hm, didn't see it there yet. Thanks for the link.
The only barriers that can stop you are the ones you create yourself.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: Xfce4 and TC integration
« Reply #7 on: November 07, 2009, 10:31:20 AM »
Had to leave town before being able to post source, it is in source directory under it's name.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Xfce4 and TC integration
« Reply #8 on: November 07, 2009, 10:38:43 AM »
Had to leave town before being able to post source, it is in source directory under it's name.

Thanks. I will create a minimalist WEB page on my server for this and possible other codes to make it easier.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."