Giter Site home page Giter Site logo

macOS support about activate-linux HOT 33 OPEN

mrglockenspiel avatar mrglockenspiel commented on May 31, 2024
macOS support

from activate-linux.

Comments (33)

Snivine avatar Snivine commented on May 31, 2024 20

I'mma make it but for Windows

from activate-linux.

MrGlockenspiel avatar MrGlockenspiel commented on May 31, 2024 12

If someone does manage to make it cross platform feel free to submit a PR

from activate-linux.

MrGlockenspiel avatar MrGlockenspiel commented on May 31, 2024 8

Probably compiles on MacOS now, but wont run because I need to strip out the code that makes it require 32 bit color support

from activate-linux.

Naville avatar Naville commented on May 31, 2024 8

Lakr233/ActivateMac FYI

from activate-linux.

MrGlockenspiel avatar MrGlockenspiel commented on May 31, 2024 3

I put a workaround for the 32 bit color support a couple days ago, might make a VM and fix it on there sometime

from activate-linux.

Arkhtek avatar Arkhtek commented on May 31, 2024 2

Noooo dont port it to macos let them suffer

from activate-linux.

rollingmoai avatar rollingmoai commented on May 31, 2024 2

If this is going to be cross-platform, the repo should be renamed to something like activate-watermark. Windows support is now available so we are nearly there.

from activate-linux.

MrGlockenspiel avatar MrGlockenspiel commented on May 31, 2024 1

Yeah these are all because of the non-standard X implementation on macOS and there's nothing I can really do

from activate-linux.

MrGlockenspiel avatar MrGlockenspiel commented on May 31, 2024 1

everything outside of linux is an afterthought, plus activate-linux just sounds better and is funnier

from activate-linux.

StereoMadnessss avatar StereoMadnessss commented on May 31, 2024

This is for linux, as such this does not work on MacOS. As I said, this is made for linux and not MacOS.

from activate-linux.

MrGlockenspiel avatar MrGlockenspiel commented on May 31, 2024

I would port it but i havent used a mac in years, much less owned one, and I know nothing about development on them, nor do I particularly want to

from activate-linux.

Devnol avatar Devnol commented on May 31, 2024

Can confirm, compiles and segfaults in macOS (libxfixes was also needed)

from activate-linux.

Devnol avatar Devnol commented on May 31, 2024

Not really good at debugging but I tried running it inside lldb and the output was as follows:

(lldb) target create "bin/activate_macos"
run
Current executable set to '/Users/pakou/Documents/CS_Projects/activate-linux/bin/activate_macos' (x86_64).
(lldb) run
Process 84575 launched: '/Users/pakou/Documents/CS_Projects/activate-linux/bin/activate_macos' (x86_64)
Process 84575 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xe8)
    frame #0: 0x0000000100003a5a activate_macos`main + 42
activate_macos`main:
->  0x100003a5a <+42>: movq   0xe8(%rcx), %rax
    0x100003a61 <+49>: movslq 0xe0(%rcx), %rcx
    0x100003a68 <+56>: shlq   $0x7, %rcx
    0x100003a6c <+60>: movq   0x10(%rax,%rcx), %rax
Target 0: (activate_macos) stopped.

from activate-linux.

Ruby-Dragon avatar Ruby-Dragon commented on May 31, 2024

not sure if installing from makefile is supported on Mac. I have never owned a mac so I really don't know, but that may be something to work on.

from activate-linux.

Devnol avatar Devnol commented on May 31, 2024

Make install is basically just copying files to places so yeah it is supported as long as you have the right perms. Not sure how that would affect it though, since the output binary isn't installed anywhere

from activate-linux.

Ruby-Dragon avatar Ruby-Dragon commented on May 31, 2024

I know some people with macs and might be able to get them to test out this

from activate-linux.

IAMACAR10 avatar IAMACAR10 commented on May 31, 2024

i have a friend with a mac and i wanna look into testing this. also need to change the text to say 'activate macOS'

from activate-linux.

Devnol avatar Devnol commented on May 31, 2024

It already does that, see here

from activate-linux.

ZtereoHYPE avatar ZtereoHYPE commented on May 31, 2024

I have already tested and everything works if not for transparency for lack of support of it in macOS's XQuartz and the fact that it does not stay on top of all windows for non standard implementation of X11.

from activate-linux.

ZtereoHYPE avatar ZtereoHYPE commented on May 31, 2024

This issue is left open only so people see that it doesn't work perfectly.

from activate-linux.

Devnol avatar Devnol commented on May 31, 2024

wait how did you compile it?

from activate-linux.

 avatar commented on May 31, 2024

I installed xorg-server, cairo and xorg-libXinerama with ports, restarted shell, changed flags to CFLAGS = -L/opt/local/lib -lX11 -lXfixes -lXinerama -lcairo -I/opt/local/include/cairo -I/opt/local/include, it compiles, but crashes with segfault when I run it.

I tried to debug it with gdb but it it says ?? instead of file names, so idk where it crashes.

If you can guide me how to debug it better, I can help. I haven't worked with c.

I'm not even sure how is xorg supposed to work on mac, do you need to run it somehow?

from activate-linux.

Devnol avatar Devnol commented on May 31, 2024

Ok wtf it runs now. It used to not run at all after compiling (see above). However, for some reason it looks like this:
image
It also doesn't stay on top at all and it has an xquartz icon in the dock (would be better if it could run in the background and only be killable by terminal if possible)

from activate-linux.

MikeHingley22 avatar MikeHingley22 commented on May 31, 2024

Yeah these are all because of the non-standard X implementation on macOS and there's nothing I can really do

could you copy the window pixels for that areas, and then use that as a bitmap to render the text onto (not an expert - just wondering if it is something possible)

from activate-linux.

Ruby-Dragon avatar Ruby-Dragon commented on May 31, 2024

That plus a gaussian blur is how windows does acrylic

from activate-linux.

Naville avatar Naville commented on May 31, 2024

It already does that, see here

@Devnol FYI it should be "System Preferences", just for the fully immersive experience.

image

from activate-linux.

cake03 avatar cake03 commented on May 31, 2024

no

from activate-linux.

b3z avatar b3z commented on May 31, 2024

Pls I need this so I can finally throw away my windows bootcamp partition.

from activate-linux.

Mega-Touk avatar Mega-Touk commented on May 31, 2024

Pls port it to Chromebook now

from activate-linux.

Ruby-Dragon avatar Ruby-Dragon commented on May 31, 2024

Chromebooks are linux. Just turn on linux mode and install

from activate-linux.

MrGlockenspiel avatar MrGlockenspiel commented on May 31, 2024

I would be interested so see how well it works on there
I'd assume flawlessly

from activate-linux.

IAMACAR10 avatar IAMACAR10 commented on May 31, 2024

from activate-linux.

Ruby-Dragon avatar Ruby-Dragon commented on May 31, 2024

i mean, i guess, but Linux is still the best supported platform for this project

from activate-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.