From: Fazlul Shahriar <fshahriar@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] Desktop File for Acme [plan9port]
Date: Wed, 11 Sep 2019 20:27:50 -0400 [thread overview]
Message-ID: <CAA2CNPbsG964_WEArPS8_6gBSiKXWXpsb=C8P9zQCTZc-HSJGw@mail.gmail.com> (raw)
In-Reply-To: <0bd4adbb-55df-a9ff-0584-319524cc6a1e@firemail.cc>
[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]
This works for me:
$ cat ~/.local/share/applications/acme.desktop
[Desktop Entry]
Version=1.0
Type=Application
Categories=Development
Name=Acme
Comment=
Exec=/home/fhs/bin/sh/acmestart
Icon=/usr/local/plan9/mac/spaceglenda.png
Path=/home/fhs
Terminal=false
StartupNotify=false
On Wed, Sep 11, 2019 at 8:10 PM Parker Ellertson <pellertson@firemail.cc>
wrote:
> I'm trying to set up a desktop entry so I can launch acme w/o opening a
> spare terminal. So far I have this in the entry:
> ```
> [Desktop Entry]
> Version=1.0
> Type=Application
> Exec=/home/parker/bin/acme.rc &
> Terminal=true
> Name=Acme
> Icon=/usr/local/plan9/mac/spaceglenda.png
> ```
> And the executable file is:
> ```
> #!/usr/bin/env rc
>
> TERM=dumb
> plumber
>
> fn cd { builtin cd $1 && awd $sysname }
> tabstop=4
>
> #font='/mnt/font/Lucida Grande/15a/font'
> #font='/mnt/font/Roboto Regular/14a/font'
> #font='/mnt/font/Noto Sans/13a/font'
>
> lfont=/mnt/font/UnifontMedium/10a/font
> font=$lfont
>
> SHELL=rc
> exec acme -a -f $font -F $lfont $*
> ```
> The script works when I launch it in a terminal. But I can't figure out
> why it isn't working via the desktop entry. I had `terminal` set to
> false before and it didn't work. But when I set it to true, I see a
> terminal screen flicker for a moment before it vanishes again. Anyone
> here have any luck with doing this?
>
>
[-- Attachment #2: Type: text/html, Size: 1842 bytes --]
next prev parent reply other threads:[~2019-09-12 0:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-12 0:08 Parker Ellertson
2019-09-12 0:27 ` Fazlul Shahriar [this message]
2019-09-24 10:59 ` Dmitry Panchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAA2CNPbsG964_WEArPS8_6gBSiKXWXpsb=C8P9zQCTZc-HSJGw@mail.gmail.com' \
--to=fshahriar@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).