9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Desktop File for Acme [plan9port]
@ 2019-09-12  0:08 Parker Ellertson
  2019-09-12  0:27 ` Fazlul Shahriar
  2019-09-24 10:59 ` Dmitry Panchenko
  0 siblings, 2 replies; 3+ messages in thread
From: Parker Ellertson @ 2019-09-12  0:08 UTC (permalink / raw)
  To: 9fans

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?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Desktop File for Acme [plan9port]
  2019-09-12  0:08 [9fans] Desktop File for Acme [plan9port] Parker Ellertson
@ 2019-09-12  0:27 ` Fazlul Shahriar
  2019-09-24 10:59 ` Dmitry Panchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Fazlul Shahriar @ 2019-09-12  0:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [9fans] Desktop File for Acme [plan9port]
  2019-09-12  0:08 [9fans] Desktop File for Acme [plan9port] Parker Ellertson
  2019-09-12  0:27 ` Fazlul Shahriar
@ 2019-09-24 10:59 ` Dmitry Panchenko
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Panchenko @ 2019-09-24 10:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1230 bytes --]

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 <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?
>
>

-- 
Regards,

Dmytro Panchenko

[-- Attachment #2: Type: text/html, Size: 1682 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-24 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-12  0:08 [9fans] Desktop File for Acme [plan9port] Parker Ellertson
2019-09-12  0:27 ` Fazlul Shahriar
2019-09-24 10:59 ` Dmitry Panchenko

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).