Re: changing terminal emulator



Ah, I see then.  On Gentoo, the xfce4 terminal package installs
/usr/bin/Terminal (also symlinked as /usr/bin/terminal) and
/usr/share/applications/Terminal.desktop

I do see that it has "TerminalEmulator" included in its desktop
entry's Categories.  What if kupfer parsed all known desktop entries
for things that have that category instead of explicitly naming
gnome-terminal, xfce-terminal, lxterminal, etc?  Of course, everything
except the exearg can be deduced from the desktop entry.
Alternatively, what about providing the user with a textbox in which
to provide their terminal emulator with exearg?  (I know, I know... if
this were ruby I'd be attaching a patch to this email; maybe it's time
to learn python)

On Tue, May 24, 2011 at 2:37 AM, David Schneider <dnschneid gmail com> wrote:
> I'm not sure why xfce4-terminal isn't in the list for you.  You can check
> kupfer/plugin/core/alternatives.py, but the xfce4-terminal entry was added
> pre-v205, so it should have been found. Does "locate xfce4-terminal.desktop"
> return any results for you?
>
> Of course, the reality is that it's not, so a workaround, if you enable the
> "Custom Terminal" plugin, you can enter commands manually and then select
> "Custom Terminal" in the terminals dropdown.
>
> ---------- Mon, 23 May 2011 20:29:48 -0400 ----------
> Francis Ferrell <codepanda gmail com> wrote:
>
>> I'm using kupfer v206 on gentoo under openbox (thanks for making a
>> launcher that doesn't depend on so much, like its alternatives).  I
>> use xfce's terminal and so don't have gnome-terminal installed at all.
>>  As a result, when I try to use the System Services plugin, it fails
>> because gnome-terminal isn't available for launching gksu.
>>
>> When I look under the General tab in Preferences, I see that the
>> Terminal Emulator select box has no value and is grayed out.
>>
>> How could I get xfce-terminal as an option in that drop down?
>> -OR-
>> How could I configure kupfer via ~/.config/kupfer/kupfer.cfg to use
>> xfce-terminal?
>>
>> Gratuitous stacktrace:
>> > Error [kupfer.desktop_launch]: Error Launching  ['gnome-terminal', '-x', 'gksu', '/etc/init.d/lighttpd', 'start'] Failed to execute child process "gnome-terminal" (No such file or directory)
>> > Traceback (most recent call last):
>> >   File "/usr/share/kupfer/kupfer/ui/browser.py", line 1563, in _activate
>> >     self.data_controller.activate(ui_ctx=self._make_gui_ctx())
>> >   File "/usr/share/kupfer/kupfer/core/data.py", line 798, in activate
>> >     res, ret = ctx.run(leaf, action, sobject, ui_ctx=ui_ctx)
>> >   File "/usr/share/kupfer/kupfer/core/commandexec.py", line 303, in run
>> >     ret = activate_action(execution_token, obj, action, iobj)
>> >   File "/usr/share/kupfer/kupfer/core/commandexec.py", line 80, in activate_action
>> >     return _activate_action_single(obj, action, iobj, kwargs)
>> >   File "/usr/share/kupfer/kupfer/core/commandexec.py", line 88, in _activate_action_single
>> >     ret = action.activate(obj, **kwargs)
>> >   File "/usr/share/kupfer/kupfer/plugin/services.py", line 69, in activate
>> >     utils.spawn_in_terminal([sudo_cmd, leaf.object, self._command])
>> >   File "/usr/share/kupfer/kupfer/utils.py", line 203, in spawn_in_terminal
>> >     desktop_launch.spawn_app_id(term["desktopid"], _argv , workdir, notify)
>> >   File "/usr/share/kupfer/kupfer/desktop_launch.py", line 353, in spawn_app_id
>> >     return spawn_app(app_info, argv, [], workdir, startup_notify, screen=screen)
>> >   File "/usr/share/kupfer/kupfer/desktop_launch.py", line 404, in spawn_app
>> >     raise SpawnError(unicode(exc))
>> > kupfer.desktop_launch.SpawnError: Failed to execute child process "gnome-terminal" (No such file or directory)
>> _______________________________________________
>> kupfer-list mailing list
>> kupfer-list gnome org
>> http://mail.gnome.org/mailman/listinfo/kupfer-list
>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]