From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <0bd4adbb-55df-a9ff-0584-319524cc6a1e@firemail.cc> In-Reply-To: <0bd4adbb-55df-a9ff-0584-319524cc6a1e@firemail.cc> From: Fazlul Shahriar Date: Wed, 11 Sep 2019 20:27:50 -0400 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="000000000000cde7ed05925035a6" Subject: Re: [9fans] Desktop File for Acme [plan9port] Topicbox-Message-UUID: 07d09924-eada-11e9-9d60-3106f5b1d025 --000000000000cde7ed05925035a6 Content-Type: text/plain; charset="UTF-8" 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 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? > > --000000000000cde7ed05925035a6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This works for me:

$ cat ~/.local= /share/applications/acme.desktop
[Desktop Entry]
Version=3D1.0
Ty= pe=3DApplication
Categories=3DDevelopment
Name=3DAcme
Comment=3DExec=3D/home/fhs/bin/sh/acmestart
Icon=3D/usr/local/plan9/mac/spacegle= nda.png
Path=3D/home/fhs
Terminal=3Dfalse
StartupNotify=3Dfalse

On Wed, Sep 11, 2019 at 8:10 PM Parker Ellertson <pellertson@firemail.c= c> wrote:
I&#= 39;m trying to set up a desktop entry so I can launch acme w/o opening a spare terminal.=C2=A0 So far I have this in the entry:
```
[Desktop Entry]
Version=3D1.0
Type=3DApplication
Exec=3D/home/parker/bin/acme.rc &
Terminal=3Dtrue
Name=3DAcme
Icon=3D/usr/local/plan9/mac/spaceglenda.png
```
And the executable file is:
```
#!/usr/bin/env rc

TERM=3Ddumb
plumber

fn cd { builtin cd $1 && awd $sysname }
tabstop=3D4

#font=3D'/mnt/font/Lucida Grande/15a/font'
#font=3D'/mnt/font/Roboto Regular/14a/font'
#font=3D'/mnt/font/Noto Sans/13a/font'

lfont=3D/mnt/font/UnifontMedium/10a/font
font=3D$lfont

SHELL=3Drc
exec acme -a -f $font -F $lfont $*
```
The script works when I launch it in a terminal.=C2=A0 But I can't figu= re out
why it isn't working via the desktop entry.=C2=A0 I had `terminal` set = to
false before and it didn't work.=C2=A0 But when I set it to true, I see= a
terminal screen flicker for a moment before it vanishes again.=C2=A0 Anyone=
here have any luck with doing this?

--000000000000cde7ed05925035a6--