You can't currently link to GNU/Linux Ubuntu package (another name for a program/documentation/etc) using the "apturl" protocol.

For instance to install the program Pidgin and an optional pidgin-plugin pack you would create a link:

apt:pidgin,pidgin-plugin-pack

If the package is not in the main repository you would also specify the section it is in:

apt:xchat-gnome?section=universe

I attempted to add this myself and failed miserably. I'd appreciate it if someone could add the protocol.

Comments

gagarine’s picture

In the function link_validate_url() you can add a protocole..

$allowed_protocols = variable_get('filter_allowed_protocols', array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal','apt'));

But, i don't understand what they have a variable_get here perhaps for a future admin improvement.

So like that i think is ok:

$allowed_protocols = array('http', 'https', 'ftp', 'news', 'nntp', 'telnet', 'mailto', 'irc', 'ssh', 'sftp', 'webcal','apt');

dqd’s picture

Status: Active » Closed (won't fix)

Issue date expired ...

For any feature request please take a look on the link module versions for Drupal 6 and Drupal 7 with much more features and better server and web standart support since Drupal 5 is not supported no more officially.

The stop for Drupal 5 support: Since we have to catch up to get ready for the final Drupal 7 release and have to deal with many feature requests for the Drupal 6 and Drupal 7 version of the link field module, we sadly have to annouce the stop of Drupal 5 support. The files will stay for any individual use or customization, but any support in the issue queue and in the forums has expired from now on.

Sorry and thanks for understanding.