Re: Desktop File for Acme [plan9port]

Dmitry Panchenko <[email protected]>
Newsgroups gmane.os.plan9.general
Message-ID <CAC6WWBcM3W_f6TsTUrJ8k6nmSvQbq0b7Aqcyaknusdr0jKAyyA@mail.gmail.com>
You can try a bash script instead for rc. It works in my case.

On Thu, Sep 12, 2019 at 3:09 AM Parker Ellertson <[email protected]>
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?
>
>

-- 
Regards,

Dmytro Panchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.